if series is set it is an episode
This commit is contained in:
parent
018b4da5b1
commit
9f1f571094
1 changed files with 4 additions and 1 deletions
|
@ -147,8 +147,11 @@ class File(models.Model):
|
||||||
if self.item:
|
if self.item:
|
||||||
for key in self.ITEM_INFO:
|
for key in self.ITEM_INFO:
|
||||||
data[key] = self.item.get(key)
|
data[key] = self.item.get(key)
|
||||||
|
if self.item.get('series'):
|
||||||
|
data['isEpisode'] = True
|
||||||
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'] = 'isEpisode' in data \
|
||||||
|
or 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') != None and data.get('episodeTitle') != None)
|
or (data.get('seriesTitle') != None and data.get('episodeTitle') != None)
|
||||||
|
|
Loading…
Reference in a new issue