mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-08 08:29:51 +00:00
skip empty subtitle, #663
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user