mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 03:03:01 +00:00
[extractor/generic] Add support for snagfilms embeds
This commit is contained in:
parent
7c197ad96d
commit
eedd20ef96
1 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,7 @@
|
||||||
from .vimeo import VimeoIE
|
from .vimeo import VimeoIE
|
||||||
from .dailymotion import DailymotionCloudIE
|
from .dailymotion import DailymotionCloudIE
|
||||||
from .onionstudios import OnionStudiosIE
|
from .onionstudios import OnionStudiosIE
|
||||||
|
from .snagfilms import SnagFilmsEmbedIE
|
||||||
|
|
||||||
|
|
||||||
class GenericIE(InfoExtractor):
|
class GenericIE(InfoExtractor):
|
||||||
|
@ -1550,6 +1551,11 @@ def _playlist_from_matches(matches, getter=None, ie=None):
|
||||||
if onionstudios_url:
|
if onionstudios_url:
|
||||||
return self.url_result(onionstudios_url)
|
return self.url_result(onionstudios_url)
|
||||||
|
|
||||||
|
# Look for SnagFilms embeds
|
||||||
|
snagfilms_url = SnagFilmsEmbedIE._extract_url(webpage)
|
||||||
|
if snagfilms_url:
|
||||||
|
return self.url_result(snagfilms_url)
|
||||||
|
|
||||||
# Look for AdobeTVVideo embeds
|
# Look for AdobeTVVideo embeds
|
||||||
mobj = re.search(
|
mobj = re.search(
|
||||||
r'<iframe[^>]+src=[\'"]((?:https?:)?//video\.tv\.adobe\.com/v/\d+[^"]+)[\'"]',
|
r'<iframe[^>]+src=[\'"]((?:https?:)?//video\.tv\.adobe\.com/v/\d+[^"]+)[\'"]',
|
||||||
|
|
Loading…
Reference in a new issue