mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	[mtvservices] Fix mediagen URL generation
This commit is contained in:
		| @@ -114,7 +114,8 @@ class MTVServicesInfoExtractor(InfoExtractor): | |||||||
|         # Remove the templates, like &device={device} |         # Remove the templates, like &device={device} | ||||||
|         mediagen_url = re.sub(r'&[^=]*?={.*?}(?=(&|$))', '', mediagen_url) |         mediagen_url = re.sub(r'&[^=]*?={.*?}(?=(&|$))', '', mediagen_url) | ||||||
|         if 'acceptMethods' not in 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, |         mediagen_doc = self._download_xml(mediagen_url, video_id, | ||||||
|                                           'Downloading video urls') |                                           'Downloading video urls') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user