mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 11:21:29 -05:00
[mtvservices] Fix mediagen URL generation
This commit is contained in:
parent
79fa9db0da
commit
56f447be9f
1 changed files with 2 additions and 1 deletions
|
@ -114,7 +114,8 @@ def _get_video_info(self, itemdoc):
|
|||
# Remove the templates, like &device={device}
|
||||
mediagen_url = re.sub(r'&[^=]*?={.*?}(?=(&|$))', '', mediagen_url)
|
||||
if 'acceptMethods' not in mediagen_url:
|
||||
mediagen_url += '&acceptMethods=fms'
|
||||
mediagen_url += '&' if '?' in mediagen_url else '?'
|
||||
mediagen_url += 'acceptMethods=fms'
|
||||
|
||||
mediagen_doc = self._download_xml(mediagen_url, video_id,
|
||||
'Downloading video urls')
|
||||
|
|
Loading…
Reference in a new issue