Annotation.json: document empty-subtitle special case

This commit is contained in:
Will Thompson 2016-04-19 12:20:49 +01:00
parent af0d87b569
commit 400b6650a2
No known key found for this signature in database
GPG Key ID: 3422DC0D7AD482A7
1 changed files with 3 additions and 0 deletions

View File

@ -295,6 +295,9 @@ class Annotation(models.Model):
if value != None:
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:
del j['id']