1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-18 07:05:41 +07:00

[extractor/generic] Add support for webcaster.pro embeds

This commit is contained in:
Sergey M․
2016-11-27 19:56:32 +07:00
parent f25e1c8d8c
commit 83f1481baa
2 changed files with 23 additions and 0 deletions

View File

@@ -60,6 +60,7 @@
from .mtv import MTVServicesEmbeddedIE
from .pladform import PladformIE
from .videomore import VideomoreIE
from .webcaster import WebcasterFeedIE
from .googledrive import GoogleDriveIE
from .jwplatform import JWPlatformIE
from .digiteka import DigitekaIE
@@ -2140,6 +2141,11 @@ def _playlist_from_matches(matches, getter=None, ie=None):
if videomore_url:
return self.url_result(videomore_url)
# Look for Webcaster embeds
webcaster_url = WebcasterFeedIE._extract_url(self, webpage)
if webcaster_url:
return self.url_result(webcaster_url, ie=WebcasterFeedIE.ie_key())
# Look for Playwire embeds
mobj = re.search(
r'<script[^>]+data-config=(["\'])(?P<url>(?:https?:)?//config\.playwire\.com/.+?)\1', webpage)