Browse Source

[extractor/generic] Add support vessel embeds (Closes #7083)

totalwebcasting
Sergey M․ 9 years ago
parent
commit
48a5eabc48
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      youtube_dl/extractor/generic.py

+ 6
- 0
youtube_dl/extractor/generic.py View 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[^"]+)"',


Loading…
Cancel
Save