]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[extractor/generic] Add support for snagfilms embeds
authorSergey M․ <dstftw@gmail.com>
Sat, 27 Jun 2015 12:26:14 +0000 (18:26 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 27 Jun 2015 12:26:14 +0000 (18:26 +0600)
youtube_dl/extractor/generic.py

index 42e4e70353f041323631aacf0a4389f18a92bdad..5b1da47e3d4bb0678a7e6433d024a6cadad55bed 100644 (file)
@@ -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+[^"]+)[\'"]',