use sum instead of len for video count in main artist and country folders if all videos are shown

This commit is contained in:
bassdart 2019-02-11 14:58:34 +01:00
parent 304f63907f
commit 4222f04793

View file

@ -454,7 +454,7 @@ def showArtist(style, limit, start):
if entry['unofficial'] >= "1":
addDir("%s (%s)" % (artist, unofficial), unidecode(artist.upper()), 'sortArtists', fanart, unofficial)
elif videoselection == "2":
addDir("%s (%s/%s)" % (artist, official, unofficial), unidecode(artist.upper()), 'sortArtists', fanart, len(result))
addDir("%s (%s/%s)" % (artist, official, unofficial), unidecode(artist.upper()), 'sortArtists', fanart, (official + unofficial))
if maximum > end:
fanart = 'DefaultFolder.png'
addDir(translation(30036), '&style=' + style + '&limit=' + limit + '&start=' + str(nextstart), 'showArtist', fanart)