From 400b6650a2fbd69ef906360c4f4d893a7d91d93e Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Tue, 19 Apr 2016 12:20:49 +0100 Subject: [PATCH] Annotation.json: document empty-subtitle special case --- pandora/annotation/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandora/annotation/models.py b/pandora/annotation/models.py index c274d28e1..24d2871e7 100644 --- a/pandora/annotation/models.py +++ b/pandora/annotation/models.py @@ -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']