mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-05 05:19:30 +00:00
fix key error for subtitle source
This commit is contained in:
@@ -112,7 +112,7 @@ class YoutubeSubtitle:
|
||||
videos_base = self.video.config["application"]["videos"]
|
||||
for subtitle in relevant_subtitles:
|
||||
dest_path = os.path.join(videos_base, subtitle["media_url"])
|
||||
source = subtitle["media_url"]
|
||||
source = subtitle["source"]
|
||||
response = requests.get(subtitle["url"])
|
||||
if not response.ok:
|
||||
print(f"{self.video.youtube_id}: failed to download subtitle")
|
||||
|
||||
Reference in New Issue
Block a user