skip empty subtitle, #663

pull/690/head
Simon 3 months ago
parent c993a5de5c
commit 6dcef70b8e
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

@ -128,6 +128,10 @@ class YoutubeSubtitle:
print(response.text)
continue
if not response.text:
print(f"{self.video.youtube_id}: skip empty subtitle")
continue
parser = SubtitleParser(response.text, lang, source)
parser.process()
if not parser.all_cues:

Loading…
Cancel
Save