mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 02:42:30 +00:00
[cinemassacre] Use screenwavemedia embed pattern
This commit is contained in:
parent
678d33295b
commit
109a4156e1
@ -6,6 +6,7 @@
|
|||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import ExtractorError
|
from ..utils import ExtractorError
|
||||||
from .bliptv import BlipTVIE
|
from .bliptv import BlipTVIE
|
||||||
|
from .screenwavemedia import ScreenwaveMediaIE
|
||||||
|
|
||||||
|
|
||||||
class CinemassacreIE(InfoExtractor):
|
class CinemassacreIE(InfoExtractor):
|
||||||
@ -83,10 +84,10 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
playerdata_url = self._search_regex(
|
playerdata_url = self._search_regex(
|
||||||
[
|
[
|
||||||
r'src="(http://(?:player2\.screenwavemedia\.com|player\.screenwavemedia\.com/play)/[a-zA-Z]+\.php\?[^"]*\bid=.+?)"',
|
ScreenwaveMediaIE.EMBED_PATTERN,
|
||||||
r'<iframe[^>]+src="((?:https?:)?//(?:[^.]+\.)?youtube\.com/.+?)"',
|
r'<iframe[^>]+src="(?P<url>(?:https?:)?//(?:[^.]+\.)?youtube\.com/.+?)"',
|
||||||
],
|
],
|
||||||
webpage, 'player data URL', default=None)
|
webpage, 'player data URL', default=None, group='url')
|
||||||
if not playerdata_url:
|
if not playerdata_url:
|
||||||
playerdata_url = BlipTVIE._extract_url(webpage)
|
playerdata_url = BlipTVIE._extract_url(webpage)
|
||||||
if not playerdata_url:
|
if not playerdata_url:
|
||||||
|
Loading…
Reference in New Issue
Block a user