forked from 0x2620/pandora
Annotation.json: document empty-subtitle special case
This commit is contained in:
parent
af0d87b569
commit
400b6650a2
1 changed files with 3 additions and 0 deletions
|
@ -295,6 +295,9 @@ class Annotation(models.Model):
|
||||||
if value != None:
|
if value != None:
|
||||||
j[key] = value
|
j[key] = value
|
||||||
|
|
||||||
|
# Items without any real subtitles are given a dummy 5-second subtitle
|
||||||
|
# every minute to ensure that they have at least *some* clips. Treat
|
||||||
|
# them specially. See Item.add_empty_clips
|
||||||
if l.get('isSubtitles') and 'id' in j and not self.value:
|
if l.get('isSubtitles') and 'id' in j and not self.value:
|
||||||
del j['id']
|
del j['id']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue