From 0414df0de087d027baa72c354ad53412e49fef45 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 10 Feb 2022 17:10:30 +0700 Subject: [PATCH] fix key error for subtitle source --- tubearchivist/home/src/index/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/home/src/index/video.py b/tubearchivist/home/src/index/video.py index 1385e16..4ac4461 100644 --- a/tubearchivist/home/src/index/video.py +++ b/tubearchivist/home/src/index/video.py @@ -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")