diff --git a/CHANGES.md b/CHANGES.md index 7d72d4b..5f942a4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,11 @@ +### 0.21.1 (2020-01-10 14:45:00 UTC) + +* Fix viewing an show added before any application configuration is saved (very rare under normal use) + + ### 0.21.0 (2020-01-10 00:40:00 UTC) * Change core system to improve performance and facilitate multi TV info sources diff --git a/sickbeard/__init__.py b/sickbeard/__init__.py index 358e7ac..0b1dad0 100755 --- a/sickbeard/__init__.py +++ b/sickbeard/__init__.py @@ -755,6 +755,8 @@ def init_stage_1(console_logging): FANART_RATINGS = check_setting_str(CFG, 'GUI', 'fanart_ratings', None) if None is not FANART_RATINGS: FANART_RATINGS = ast.literal_eval(FANART_RATINGS or '{}') + if not isinstance(FANART_RATINGS, dict): + FANART_RATINGS = {} USE_IMDB_INFO = bool(check_setting_int(CFG, 'GUI', 'use_imdb_info', 1)) IMDB_ACCOUNTS = CFG.get('GUI', []).get('imdb_accounts', [IMDB_DEFAULT_LIST_ID, IMDB_DEFAULT_LIST_NAME]) HOME_SEARCH_FOCUS = bool(check_setting_int(CFG, 'General', 'home_search_focus', HOME_SEARCH_FOCUS)) diff --git a/sickbeard/providers/torrentleech.py b/sickbeard/providers/torrentleech.py index 66ae3e5..3c69372 100644 --- a/sickbeard/providers/torrentleech.py +++ b/sickbeard/providers/torrentleech.py @@ -24,9 +24,7 @@ from ..helpers import try_int from bs4_parser import BS4Parser from _23 import unidecode -from six import iteritems - -from six import PY2 +from six import iteritems, PY2 class TorrentLeechProvider(generic.TorrentProvider):