[crunchyroll] Fix format extraction
Reported in https://github.com/rg3/youtube-dl/issues/2782#issuecomment-68556780
This commit is contained in:
		
							parent
							
								
									817f786fbb
								
							
						
					
					
						commit
						a221f22969
					
				| @ -228,7 +228,7 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text | |||||||
|         video_thumbnail = self._search_regex(r'<episode_image_url>([^<]+)', playerdata, 'thumbnail', fatal=False) |         video_thumbnail = self._search_regex(r'<episode_image_url>([^<]+)', playerdata, 'thumbnail', fatal=False) | ||||||
| 
 | 
 | ||||||
|         formats = [] |         formats = [] | ||||||
|         for fmt in re.findall(r'\?p([0-9]{3,4})=1', webpage): |         for fmt in re.findall(r'showmedia\.([0-9]{3,4})p', webpage): | ||||||
|             stream_quality, stream_format = self._FORMAT_IDS[fmt] |             stream_quality, stream_format = self._FORMAT_IDS[fmt] | ||||||
|             video_format = fmt + 'p' |             video_format = fmt + 'p' | ||||||
|             streamdata_req = compat_urllib_request.Request('http://www.crunchyroll.com/xml/') |             streamdata_req = compat_urllib_request.Request('http://www.crunchyroll.com/xml/') | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user