mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 03:07:07 -05:00 
			
		
		
		
	[generic] Require og:video URLs to contain a dot
This commit is contained in:
		@@ -833,7 +833,7 @@ class GenericIE(InfoExtractor):
 | 
				
			|||||||
            if m_video_type is not None:
 | 
					            if m_video_type is not None:
 | 
				
			||||||
                def check_video(vurl):
 | 
					                def check_video(vurl):
 | 
				
			||||||
                    vpath = compat_urlparse.urlparse(vurl).path
 | 
					                    vpath = compat_urlparse.urlparse(vurl).path
 | 
				
			||||||
                    return not vpath.endswith('.swf')
 | 
					                    return '.' in vpath and not vpath.endswith('.swf')
 | 
				
			||||||
                found = list(filter(
 | 
					                found = list(filter(
 | 
				
			||||||
                    check_video,
 | 
					                    check_video,
 | 
				
			||||||
                    re.findall(r'<meta.*?property="og:video".*?content="(.*?)"', webpage)))
 | 
					                    re.findall(r'<meta.*?property="og:video".*?content="(.*?)"', webpage)))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user