diff --git a/plugins/TPDBMarkers/tpdbMarkers.py b/plugins/TPDBMarkers/tpdbMarkers.py index d9e688d5..3ca347ed 100644 --- a/plugins/TPDBMarkers/tpdbMarkers.py +++ b/plugins/TPDBMarkers/tpdbMarkers.py @@ -5,6 +5,7 @@ import requests import json import time +import math per_page = 100 @@ -99,7 +100,7 @@ def processAll(): )[0] log.info(str(count) + " scenes to submit.") i = 0 - for r in range(1, int(count / per_page) + 1): + for r in range(1, math.ceil(count / per_page) + 1): log.info( "fetching data: %s - %s %0.1f%%" % (