mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 23:07:07 -05:00 
			
		
		
		
	Fixes the InfoExtractor for the Colbert Report.
This commit is contained in:
		@@ -2332,9 +2332,18 @@ class ComedyCentralIE(InfoExtractor):
 | 
			
		||||
			epTitle = mobj.group('episode')
 | 
			
		||||
 | 
			
		||||
		mMovieParams = re.findall('(?:<param name="movie" value="|var url = ")(http://media.mtvnservices.com/([^"]*episode.*?:.*?))"', html)
 | 
			
		||||
 | 
			
		||||
		if len(mMovieParams) == 0:
 | 
			
		||||
			# The Colbert Report embeds the information in a without
 | 
			
		||||
			# a URL prefix; so extract the alternate reference
 | 
			
		||||
			# and then add the URL prefix manually.
 | 
			
		||||
 | 
			
		||||
			altMovieParams = re.findall('data-mgid="([^"]*episode.*?:.*?)"', html)
 | 
			
		||||
			if len(altMovieParams) == 0:
 | 
			
		||||
				self._downloader.trouble(u'ERROR: unable to find Flash URL in webpage ' + url)
 | 
			
		||||
				return
 | 
			
		||||
			else:
 | 
			
		||||
				mMovieParams = [("http://media.mtvnservices.com/" + altMovieParams[0], altMovieParams[0])]
 | 
			
		||||
		
 | 
			
		||||
		playerUrl_raw = mMovieParams[0][0]
 | 
			
		||||
		self.report_player_url(epTitle)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user