mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 22:59:39 +00:00
skip subtitle if not processed yet, #496
This commit is contained in:
@@ -62,7 +62,12 @@ class YoutubeSubtitle:
|
|||||||
if not all_formats:
|
if not all_formats:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
subtitle = [i for i in all_formats if i["ext"] == "json3"][0]
|
subtitle_json3 = [i for i in all_formats if i["ext"] == "json3"]
|
||||||
|
if not subtitle_json3:
|
||||||
|
print(f"{self.video.youtube_id}-{lang}: json3 not processed")
|
||||||
|
return False
|
||||||
|
|
||||||
|
subtitle = subtitle_json3[0]
|
||||||
subtitle.update(
|
subtitle.update(
|
||||||
{"lang": lang, "source": "auto", "media_url": media_url}
|
{"lang": lang, "source": "auto", "media_url": media_url}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user