diff --git a/default.py b/default.py index bd6fb15..49437f6 100644 --- a/default.py +++ b/default.py @@ -10,6 +10,7 @@ import re import time from datetime import date, datetime, timedelta import random +import math from unidecode import unidecode addonID = 'plugin.video.vidfltr' @@ -466,8 +467,10 @@ def showArtist(style, limit, start): elif videoselection == "2": addDir("%s (%s/%s)" % (artist, official, unofficial), unidecode(artist.upper()), 'sortArtists', fanart, (official + unofficial)) if maximum > end: + pagemax = (float(maximum) / float(filesinlists)) + pagenext = (float(nextstart) / float(filesinlists)) 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()