From 8f6f39caafce3dea3f47211f7e0b72e540421a69 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 20 Nov 2015 18:19:55 +0100 Subject: [PATCH] dont include emtpy annotations in srt export --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 284834da..1b8afcdc 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1617,7 +1617,7 @@ class Item(models.Model): value = value.replace('
', '
').replace('
\n', '\n').replace('
', '\n') value = value.replace('\n\n', '
\n') return value - annotations = self.annotations.filter(layer=layer) + annotations = self.annotations.filter(layer=layer).exclude(value='') if language: annotations = annotations.filter(languages__contains=language) return ox.srt.encode([{