mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-05 12:00:21 +00:00
[generic] Use screenwavemedia embed pattern
This commit is contained in:
parent
109a4156e1
commit
efd712c69b
@ -48,6 +48,7 @@
|
|||||||
from .dailymotion import DailymotionCloudIE
|
from .dailymotion import DailymotionCloudIE
|
||||||
from .onionstudios import OnionStudiosIE
|
from .onionstudios import OnionStudiosIE
|
||||||
from .snagfilms import SnagFilmsEmbedIE
|
from .snagfilms import SnagFilmsEmbedIE
|
||||||
|
from .screenwavemedia import ScreenwaveMediaIE
|
||||||
|
|
||||||
|
|
||||||
class GenericIE(InfoExtractor):
|
class GenericIE(InfoExtractor):
|
||||||
@ -1719,13 +1720,9 @@ def _playlist_from_matches(matches, getter=None, ie=None):
|
|||||||
return self.url_result(snagfilms_url)
|
return self.url_result(snagfilms_url)
|
||||||
|
|
||||||
# Look for ScreenwaveMedia embeds
|
# Look for ScreenwaveMedia embeds
|
||||||
mobj = re.search(
|
mobj = re.search(ScreenwaveMediaIE.EMBED_PATTERN, webpage)
|
||||||
r'<script[^>]+src=[\'"](http://player\d?\.screenwavemedia\.com/player\.php\?id=[A-Za-z0-9-]+)[\'"]',
|
|
||||||
webpage)
|
|
||||||
if mobj is not None:
|
if mobj is not None:
|
||||||
return self.url_result(
|
return self.url_result(unescapeHTML(mobj.group('url')), 'ScreenwaveMedia')
|
||||||
unescapeHTML(mobj.group(1)),
|
|
||||||
'ScreenwaveMedia')
|
|
||||||
|
|
||||||
# Look for AdobeTVVideo embeds
|
# Look for AdobeTVVideo embeds
|
||||||
mobj = re.search(
|
mobj = re.search(
|
||||||
|
Loading…
Reference in New Issue
Block a user