add page counter for main artists and countries

This commit is contained in:
bassdart 2019-02-12 03:07:49 +01:00
parent 71190b08a3
commit 32a8310491

View file

@ -10,6 +10,7 @@ import re
import time import time
from datetime import date, datetime, timedelta from datetime import date, datetime, timedelta
import random import random
import math
from unidecode import unidecode from unidecode import unidecode
addonID = 'plugin.video.vidfltr' addonID = 'plugin.video.vidfltr'
@ -466,8 +467,10 @@ def showArtist(style, limit, start):
elif videoselection == "2": elif videoselection == "2":
addDir("%s (%s/%s)" % (artist, official, unofficial), unidecode(artist.upper()), 'sortArtists', fanart, (official + unofficial)) addDir("%s (%s/%s)" % (artist, official, unofficial), unidecode(artist.upper()), 'sortArtists', fanart, (official + unofficial))
if maximum > end: if maximum > end:
pagemax = (float(maximum) / float(filesinlists))
pagenext = (float(nextstart) / float(filesinlists))
fanart = 'DefaultFolder.png' fanart = 'DefaultFolder.png'
addDir(translation(30036), '&style=' + style + '&limit=' + limit + '&start=' + str(nextstart), 'showArtist', fanart) addDir("%s: %s/%s" % (translation(30036), str(int(math.ceil(pagenext))), str(int(math.ceil(pagemax)))), '&style=' + style + '&limit=' + limit + '&start=' + str(nextstart), 'showArtist', fanart)
endOfDirectory() endOfDirectory()