Skip to content

Commit 884f27b

Browse files
[The Porn DB Markers] Fix pagination bug causing scenes to be skipped when count < per_page (#673)
* fix: loop not running problem * bump up the version
1 parent 2e41ce5 commit 884f27b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

plugins/TPDBMarkers/TPDBMarkers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: The Porn DB Markers
22
description: Sync Markers from The Porn DB aka theporndb.net
3-
version: 0.4.3
3+
version: 0.4.4
44
url: https://discourse.stashapp.cc/t/the-porn-db-markers/1335
55
exec:
66
- python

plugins/TPDBMarkers/tpdbMarkers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import requests
66
import json
77
import time
8+
import math
89

910

1011
per_page = 100
@@ -99,7 +100,7 @@ def processAll():
99100
)[0]
100101
log.info(str(count) + " scenes to submit.")
101102
i = 0
102-
for r in range(1, int(count / per_page) + 1):
103+
for r in range(1, math.ceil(count / per_page) + 1):
103104
log.info(
104105
"fetching data: %s - %s %0.1f%%"
105106
% (

0 commit comments

Comments
 (0)