mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	Fix the extraction of full-episodes urls from southpark.com (fixes #2278)
Added an additional regex to the generic _real_extract method of MTVServicesInfoExtractor
This commit is contained in:
		@@ -119,7 +119,9 @@ class MTVServicesInfoExtractor(InfoExtractor):
 | 
				
			|||||||
            if mgid.endswith('.swf'):
 | 
					            if mgid.endswith('.swf'):
 | 
				
			||||||
                mgid = mgid[:-4]
 | 
					                mgid = mgid[:-4]
 | 
				
			||||||
        except RegexNotFoundError:
 | 
					        except RegexNotFoundError:
 | 
				
			||||||
            mgid = self._search_regex(r'data-mgid="(.*?)"', webpage, u'mgid')
 | 
					            mgid = self._search_regex(
 | 
				
			||||||
 | 
					                [r'data-mgid="(.*?)"', r'swfobject.embedSWF\(".*?(mgid:.*?)"'],
 | 
				
			||||||
 | 
					                webpage, u'mgid')
 | 
				
			||||||
        return self._get_videos_info(mgid)
 | 
					        return self._get_videos_info(mgid)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user