diff --git a/script.module.slyguy/addon.xml b/script.module.slyguy/addon.xml index 1d77acf5..721c9479 100644 --- a/script.module.slyguy/addon.xml +++ b/script.module.slyguy/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/script.module.slyguy/resources/modules/pycaption/webvtt.py b/script.module.slyguy/resources/modules/pycaption/webvtt.py index cd22e34a..a2e2a6b8 100644 --- a/script.module.slyguy/resources/modules/pycaption/webvtt.py +++ b/script.module.slyguy/resources/modules/pycaption/webvtt.py @@ -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: