subtitles extraction for all language fixed bad request

This commit is contained in:
Ehtisham Sabir 2022-04-03 01:31:15 +05:00
parent 4efde78200
commit 8f48f187f8

View File

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