From 5d78c6cba890cdbe2cd791e2a16f308026de63cf Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 9 Feb 2013 04:02:32 +0000 Subject: [PATCH] detect episodes without episode or season number fixes #1225 --- pandora/archive/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 86610eda0..f8a9a4c88 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -150,7 +150,8 @@ class File(models.Model): data['directorSort'] = [get_name_sort(n) for n in self.item.get('director', [])] data['isEpisode'] = data.get('season') != None \ or data.get('episode') != None \ - or data.get('episodes') not in ([], None) + or data.get('episodes') not in ([], None) \ + or (data.get('seriesTitle') and data.get('episodeTitle')) if data['isEpisode'] and data['seriesYear'] == None: data['seriesYear'] = data['year'] data['type'] = 'unknown'