diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-27 18:26:14 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-27 18:26:14 +0600 |
commit | eedd20ef9637660d5585b1b7d221d7f2d31630ac (patch) | |
tree | 4102d73aa4bfb3f936d31a7bf56478de54588e40 | |
parent | 7c197ad96dd0f36177eda66777c93502228fc36b (diff) |
[extractor/generic] Add support for snagfilms embeds
-rw-r--r-- | youtube_dl/extractor/generic.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 42e4e7035..5b1da47e3 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -47,6 +47,7 @@ from .xhamster import XHamsterEmbedIE from .vimeo import VimeoIE from .dailymotion import DailymotionCloudIE from .onionstudios import OnionStudiosIE +from .snagfilms import SnagFilmsEmbedIE class GenericIE(InfoExtractor): @@ -1550,6 +1551,11 @@ class GenericIE(InfoExtractor): if 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 mobj = re.search( r'<iframe[^>]+src=[\'"]((?:https?:)?//video\.tv\.adobe\.com/v/\d+[^"]+)[\'"]', |