forked from 0x2620/pandora
isEpisode should be boolean
This commit is contained in:
parent
2c932c2d60
commit
b3ce09da88
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ class File(models.Model):
|
|||
data['isEpisode'] = data.get('season') != None \
|
||||
or data.get('episode') != None \
|
||||
or data.get('episodes') not in ([], None) \
|
||||
or (data.get('seriesTitle') and data.get('episodeTitle'))
|
||||
or (data.get('seriesTitle') != None and data.get('episodeTitle') != None)
|
||||
if data['isEpisode'] and data['seriesYear'] == None:
|
||||
data['seriesYear'] = data['year']
|
||||
data['type'] = 'unknown'
|
||||
|
|
Loading…
Reference in a new issue