Add language to media url

This commit is contained in:
Bastian Kern 2021-03-14 14:16:53 +01:00
parent ebfd66c4b1
commit 12539cb85b

View File

@ -140,6 +140,9 @@ class MTVServicesInfoExtractor(InfoExtractor):
mediagen_url += '&' if '?' in mediagen_url else '?'
mediagen_url += 'acceptMethods='
mediagen_url += 'hls' if use_hls else 'fms'
if (self._LANG):
mediagen_url += '&' if '?' in mediagen_url else '?'
mediagen_url += 'lang='+ self._LANG
mediagen_doc = self._download_xml(
mediagen_url, video_id, 'Downloading video urls', fatal=False)