mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	Merge pull request #1698 from rzhxeo/cinemassacre
[CinemassacreIE] Support more embed urls
This commit is contained in:
		@@ -41,7 +41,7 @@ class CinemassacreIE(InfoExtractor):
 | 
				
			|||||||
        webpage_url = u'http://' + mobj.group('url')
 | 
					        webpage_url = u'http://' + mobj.group('url')
 | 
				
			||||||
        webpage = self._download_webpage(webpage_url, None) # Don't know video id yet
 | 
					        webpage = self._download_webpage(webpage_url, None) # Don't know video id yet
 | 
				
			||||||
        video_date = mobj.group('date_Y') + mobj.group('date_m') + mobj.group('date_d')
 | 
					        video_date = mobj.group('date_Y') + mobj.group('date_m') + mobj.group('date_d')
 | 
				
			||||||
        mobj = re.search(r'src="(?P<embed_url>http://player\.screenwavemedia\.com/play/(?:embed|player)\.php\?id=(?:Cinemassacre-)?(?P<video_id>.+?))"', webpage)
 | 
					        mobj = re.search(r'src="(?P<embed_url>http://player\.screenwavemedia\.com/play/[a-zA-Z]+\.php\?id=(?:Cinemassacre-)?(?P<video_id>.+?))"', webpage)
 | 
				
			||||||
        if not mobj:
 | 
					        if not mobj:
 | 
				
			||||||
            raise ExtractorError(u'Can\'t extract embed url and video id')
 | 
					            raise ExtractorError(u'Can\'t extract embed url and video id')
 | 
				
			||||||
        playerdata_url = mobj.group(u'embed_url')
 | 
					        playerdata_url = mobj.group(u'embed_url')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user