From b7cf3fb1e8acb29bff50a29aeb6711c4caf7b15f Mon Sep 17 00:00:00 2001 From: JackDandy Date: Sat, 18 Jul 2015 23:11:22 +0100 Subject: [PATCH] Fix issue parsing items in ToktoToshokan provider. --- CHANGES.md | 1 + gui/slick/css/style.css | 4 ++++ sickbeard/providers/tokyotoshokan.py | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 38c55338..a83e540b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -102,6 +102,7 @@ * Change pyNMA use of urllib to requests (ref:hacks.txt) * Change Trakt url to fix baseline uses (e.g. add from trending) * Fix edit on show page for shows that have anime enabled in mass edit +* Fix issue parsing items in ToktoToshokan provider * Change to only show option "End upgrade on first match" on edit show page if quality custom is selected * Change label "Show is grouped in" in edit show page to "Show is in group" and move the section higher diff --git a/gui/slick/css/style.css b/gui/slick/css/style.css index a58f26c4..ccfdb7b6 100644 --- a/gui/slick/css/style.css +++ b/gui/slick/css/style.css @@ -1010,6 +1010,10 @@ div.formpaginate{ font-weight:900 } +#addShowForm #blackwhitelist{ + padding:0 0 0 15px +} + #addShowForm #blackwhitelist, #addShowForm #blackwhitelist h4, #addShowForm #blackwhitelist p{ diff --git a/sickbeard/providers/tokyotoshokan.py b/sickbeard/providers/tokyotoshokan.py index 13c9881b..bc665464 100644 --- a/sickbeard/providers/tokyotoshokan.py +++ b/sickbeard/providers/tokyotoshokan.py @@ -52,7 +52,7 @@ class TokyoToshokanProvider(generic.TorrentProvider): torrent_table = soup.find('table', attrs={'class': 'listing'}) torrent_rows = torrent_table.find_all('tr') if torrent_table else [] if torrent_rows: - a = (0, 1)[torrent_rows[0].find('td', attrs={'class': 'centertext'})] + a = (0, 1)[None is not torrent_rows[0].find('td', attrs={'class': 'centertext'})] for top, bottom in zip(torrent_rows[a::2], torrent_rows[a::2]): title = top.find('td', attrs={'class': 'desc-top'}).text