mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 20:07:08 -05:00 
			
		
		
		
	Test for colon in mgid
This commit is contained in:
		@@ -158,6 +158,9 @@ class MTVServicesInfoExtractor(InfoExtractor):
 | 
			
		||||
            if mgid.endswith('.swf'):
 | 
			
		||||
                mgid = mgid[:-4]
 | 
			
		||||
        except RegexNotFoundError:
 | 
			
		||||
            mgid = None
 | 
			
		||||
 | 
			
		||||
        if mgid is None or ':' not in mgid:
 | 
			
		||||
            mgid = self._search_regex(
 | 
			
		||||
                [r'data-mgid="(.*?)"', r'swfobject.embedSWF\(".*?(mgid:.*?)"'],
 | 
			
		||||
                webpage, u'mgid')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user