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