fix key error for subtitle source

This commit is contained in:
simon 2022-02-10 17:10:30 +07:00
parent a2cae51f48
commit 0414df0de0
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 1 deletions

View File

@ -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")