forked from 0x2620/pandora
dont include emtpy annotations in srt export
This commit is contained in:
parent
2b3853c7aa
commit
8f6f39caaf
1 changed files with 1 additions and 1 deletions
|
@ -1617,7 +1617,7 @@ class Item(models.Model):
|
|||
value = value.replace('<br/>', '<br>').replace('<br>\n', '\n').replace('<br>', '\n')
|
||||
value = value.replace('\n\n', '<br>\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([{
|
||||
|
|
Loading…
Reference in a new issue