Change Display Show next/previous when show list is not split to loop around.

This commit is contained in:
JackDandy 2014-12-13 04:06:05 +00:00
parent 9d2d3cee45
commit 983f790a6e
2 changed files with 7 additions and 5 deletions

View file

@ -24,6 +24,7 @@
* Update qTip2 to v2.2.1
* Overhaul all Add Show pages
* Fix Display Show next/previous when show list is split
* Change Display Show next/previous when show list is not split to loop around
[develop changelog]
* Add TVRage network name standardization

View file

@ -3730,15 +3730,16 @@ class Home(MainHandler):
t.sortedShowLists = [["Shows", sorted(shows, lambda x, y: cmp(titler(x.name), titler(y.name)))],
["Anime", sorted(anime, lambda x, y: cmp(titler(x.name), titler(y.name)))]]
tvshows = []
for tvshow_types in t.sortedShowLists:
for tvshow in tvshow_types[1]:
tvshows.append(tvshow.indexerid)
t.tvshow_id_csv = ','.join(str(x) for x in tvshows)
else:
t.sortedShowLists = [
["Shows", sorted(sickbeard.showList, lambda x, y: cmp(titler(x.name), titler(y.name)))]]
tvshows = []
for tvshow_types in t.sortedShowLists:
for tvshow in tvshow_types[1]:
tvshows.append(tvshow.indexerid)
t.tvshow_id_csv = ','.join(str(x) for x in tvshows)
t.bwl = None
if showObj.is_anime:
t.bwl = BlackAndWhiteList(showObj.indexerid)