Skip to content

Commit

Permalink
script.module.slyguy > v0.38.1
Browse files Browse the repository at this point in the history
  • Loading branch information
matthuisman authored and johnny5-is-alive committed Aug 5, 2021
1 parent 2cccc19 commit f21e12c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion script.module.slyguy/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.module.slyguy" name="SlyGuy Common" provider-name="SlyGuy" version="0.38.0">
<addon id="script.module.slyguy" name="SlyGuy Common" provider-name="SlyGuy" version="0.38.1">
<requires>
<import addon="repository.slyguy"/>
</requires>
Expand Down
4 changes: 4 additions & 0 deletions script.module.slyguy/resources/modules/pycaption/webvtt.py
Expand Up @@ -224,6 +224,10 @@ def write(self, caption_set):
self.global_layout = caption_set.get_layout_info(lang)

captions = caption_set.get_captions(lang)

# remove None captions
captions = [x for x in captions if x]

for i, caption in enumerate(captions):
merge = i > 0 and captions[i-1].start == caption.start and captions[i-1].end == caption.end
if not merge:
Expand Down

0 comments on commit f21e12c

Please sign in to comment.