mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-13 08:19:32 +01:00
[extractor/generic] Add support vessel embeds (Closes #7083)
This commit is contained in:
parent
11380753b5
commit
48a5eabc48
@ -63,6 +63,7 @@
|
|||||||
from .liveleak import LiveLeakIE
|
from .liveleak import LiveLeakIE
|
||||||
from .threeqsdn import ThreeQSDNIE
|
from .threeqsdn import ThreeQSDNIE
|
||||||
from .theplatform import ThePlatformIE
|
from .theplatform import ThePlatformIE
|
||||||
|
from .vessel import VesselIE
|
||||||
|
|
||||||
|
|
||||||
class GenericIE(InfoExtractor):
|
class GenericIE(InfoExtractor):
|
||||||
@ -1533,6 +1534,11 @@ def _playlist_from_matches(matches, getter=None, ie=None):
|
|||||||
if tp_urls:
|
if tp_urls:
|
||||||
return _playlist_from_matches(tp_urls, ie='ThePlatform')
|
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
|
# Look for embedded rtl.nl player
|
||||||
matches = re.findall(
|
matches = re.findall(
|
||||||
r'<iframe[^>]+?src="((?:https?:)?//(?:www\.)?rtl\.nl/system/videoplayer/[^"]+(?:video_)?embed[^"]+)"',
|
r'<iframe[^>]+?src="((?:https?:)?//(?:www\.)?rtl\.nl/system/videoplayer/[^"]+(?:video_)?embed[^"]+)"',
|
||||||
|
Loading…
Reference in New Issue
Block a user