detect episodes without episode or season number fixes #1225
This commit is contained in:
parent
5332c1225a
commit
5d78c6cba8
1 changed files with 2 additions and 1 deletions
|
@ -150,7 +150,8 @@ class File(models.Model):
|
||||||
data['directorSort'] = [get_name_sort(n) for n in self.item.get('director', [])]
|
data['directorSort'] = [get_name_sort(n) for n in self.item.get('director', [])]
|
||||||
data['isEpisode'] = data.get('season') != None \
|
data['isEpisode'] = data.get('season') != None \
|
||||||
or data.get('episode') != 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:
|
if data['isEpisode'] and data['seriesYear'] == None:
|
||||||
data['seriesYear'] = data['year']
|
data['seriesYear'] = data['year']
|
||||||
data['type'] = 'unknown'
|
data['type'] = 'unknown'
|
||||||
|
|
Loading…
Reference in a new issue