]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[extractor/generic] Add support vessel embeds (Closes #7083)
authorSergey M․ <dstftw@gmail.com>
Wed, 8 Jun 2016 21:02:27 +0000 (04:02 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 8 Jun 2016 21:02:27 +0000 (04:02 +0700)
youtube_dl/extractor/generic.py

index b4138381d115a78f3203f6ef0017fd83a8df41d1..90575ab0e98e066e25a43814c5734185b0d10c47 100644 (file)
@@ -63,6 +63,7 @@ from .instagram import InstagramIE
 from .liveleak import LiveLeakIE
 from .threeqsdn import ThreeQSDNIE
 from .theplatform import ThePlatformIE
+from .vessel import VesselIE
 
 
 class GenericIE(InfoExtractor):
@@ -1533,6 +1534,11 @@ class GenericIE(InfoExtractor):
         if tp_urls:
             return _playlist_from_matches(tp_urls, ie='ThePlatform')
 
+        # Look for Vessel embeds
+        vessel_urls = VesselIE._extract_urls(webpage)
+        if vessel_urls:
+            return _playlist_from_matches(vessel_urls, ie=VesselIE.ie_key())
+
         # Look for embedded rtl.nl player
         matches = re.findall(
             r'<iframe[^>]+?src="((?:https?:)?//(?:www\.)?rtl\.nl/system/videoplayer/[^"]+(?:video_)?embed[^"]+)"',