From 8f48f187f8496d05590295705b4b533697508399 Mon Sep 17 00:00:00 2001 From: Ehtisham Sabir Date: Sun, 3 Apr 2022 01:31:15 +0500 Subject: [PATCH] subtitles extraction for all language fixed bad request --- youtube_dl/extractor/wikimedia.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/extractor/wikimedia.py b/youtube_dl/extractor/wikimedia.py index b256c6879..c864563b6 100644 --- a/youtube_dl/extractor/wikimedia.py +++ b/youtube_dl/extractor/wikimedia.py @@ -60,5 +60,6 @@ class WikimediaIE(InfoExtractor): sub = 'https://commons.wikimedia.org/w/api' + sub + 'srt' lang = sub[sub.find('lang=') + 5:] lang = lang[:lang.find('&')] + sub = sub.replace(';','&') info['subtitles'][lang] = [{"ext": "srt", "url": sub}] return info