mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[metacafe] Fix video url extraction (closes #7763)
This commit is contained in:
		@@ -154,10 +154,10 @@ class MetacafeIE(InfoExtractor):
 | 
				
			|||||||
        # Extract URL, uploader and title from webpage
 | 
					        # Extract URL, uploader and title from webpage
 | 
				
			||||||
        self.report_extraction(video_id)
 | 
					        self.report_extraction(video_id)
 | 
				
			||||||
        video_url = None
 | 
					        video_url = None
 | 
				
			||||||
        mobj = re.search(r'(?m)&mediaURL=([^&]+)', webpage)
 | 
					        mobj = re.search(r'(?m)&(?:media|video)URL=([^&]+)', webpage)
 | 
				
			||||||
        if mobj is not None:
 | 
					        if mobj is not None:
 | 
				
			||||||
            mediaURL = compat_urllib_parse_unquote(mobj.group(1))
 | 
					            mediaURL = compat_urllib_parse_unquote(mobj.group(1))
 | 
				
			||||||
            video_ext = mediaURL[-3:]
 | 
					            video_ext = determine_ext(mediaURL)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            # Extract gdaKey if available
 | 
					            # Extract gdaKey if available
 | 
				
			||||||
            mobj = re.search(r'(?m)&gdaKey=(.*?)&', webpage)
 | 
					            mobj = re.search(r'(?m)&gdaKey=(.*?)&', webpage)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user