mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	Merge pull request #6467 from vijayanandnandam/master
fixing xhamster file extraction
This commit is contained in:
		@@ -47,7 +47,7 @@ class XHamsterIE(InfoExtractor):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    def _real_extract(self, url):
 | 
					    def _real_extract(self, url):
 | 
				
			||||||
        def extract_video_url(webpage):
 | 
					        def extract_video_url(webpage):
 | 
				
			||||||
            mp4 = re.search(r'<video\s+.*?file="([^"]+)".*?>', webpage)
 | 
					            mp4 = re.search(r'file:\s+\'([^\']+)\'', webpage)
 | 
				
			||||||
            if mp4 is None:
 | 
					            if mp4 is None:
 | 
				
			||||||
                raise ExtractorError('Unable to extract media URL')
 | 
					                raise ExtractorError('Unable to extract media URL')
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user