mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	DailymotionIE: some videos do not use the "hqURL", "sdURL", "ldURL" keywords. In this case, the "video_url" keyword should be looked for.
This commit is contained in:
		| @@ -662,10 +662,12 @@ class DailymotionIE(InfoExtractor): | |||||||
| 		elif 'sdURL' in flashvars: max_quality = 'sdURL' | 		elif 'sdURL' in flashvars: max_quality = 'sdURL' | ||||||
| 		else: max_quality = 'ldURL' | 		else: max_quality = 'ldURL' | ||||||
| 		mobj = re.search(r'"' + max_quality + r'":"(.+?)"', flashvars) | 		mobj = re.search(r'"' + max_quality + r'":"(.+?)"', flashvars) | ||||||
|  | 		if mobj is None: | ||||||
|  | 			mobj = re.search(r'"video_url":"(.*?)",', urllib.unquote(webpage)) | ||||||
| 		if mobj is None: | 		if mobj is None: | ||||||
| 			self._downloader.trouble(u'ERROR: unable to extract media URL') | 			self._downloader.trouble(u'ERROR: unable to extract media URL') | ||||||
| 			return | 			return | ||||||
| 		video_url = mobj.group(1).replace('\\/', '/') | 		video_url = urllib.unquote(mobj.group(1)).replace('\\/', '/') | ||||||
|  |  | ||||||
| 		# TODO: support choosing qualities | 		# TODO: support choosing qualities | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Cyril Roelandt
					Cyril Roelandt