From 143dcad4f3a07163bfb4c80852b05fda9a8f218d Mon Sep 17 00:00:00 2001 From: Dean Gardiner Date: Wed, 4 Dec 2013 19:50:48 +1300 Subject: [PATCH] Fixed incorrect reference to library 'season' and 'episode' attributes. --- couchpotato/core/media/show/library/episode/main.py | 4 ++-- couchpotato/core/plugins/matcher/main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/media/show/library/episode/main.py b/couchpotato/core/media/show/library/episode/main.py index e24338e..09cacd9 100644 --- a/couchpotato/core/media/show/library/episode/main.py +++ b/couchpotato/core/media/show/library/episode/main.py @@ -39,8 +39,8 @@ class EpisodeLibraryPlugin(LibraryBase): identifier['episode'] = scene_map.get('episode') else: # Fallback to normal season/episode numbers - identifier['season'] = library.get('season') - identifier['episode'] = library.get('episode') + identifier['season'] = library.get('season_number') + identifier['episode'] = library.get('episode_number') # Cast identifiers to integers diff --git a/couchpotato/core/plugins/matcher/main.py b/couchpotato/core/plugins/matcher/main.py index 0baba03..777f91a 100644 --- a/couchpotato/core/plugins/matcher/main.py +++ b/couchpotato/core/plugins/matcher/main.py @@ -33,7 +33,7 @@ class Matcher(Plugin): if fireEvent('searcher.correct_match', chain, release, media, quality, single = True): return chain - return None + return False def chainMatch(self, chain, group, tags): found_tags = []