From 983f790a6eef4a7749d6c233b0e9d302d2ca3402 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Sat, 13 Dec 2014 04:06:05 +0000 Subject: [PATCH] Change Display Show next/previous when show list is not split to loop around. --- CHANGES.md | 1 + sickbeard/webserve.py | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 089095fd..97b6b20b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 5fe31892..9d888825 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -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)