1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-24 16:51:36 +00:00

[extractor/generic] Add support for theplatform embeds (Closes #8636, closes #9476)

This commit is contained in:
Sergey M․ 2016-05-22 06:52:39 +06:00
parent 898f4b49cc
commit 4d8819d249
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -62,6 +62,7 @@ from .digiteka import DigitekaIE
from .instagram import InstagramIE
from .liveleak import LiveLeakIE
from .threeqsdn import ThreeQSDNIE
from .theplatform import ThePlatformIE
class GenericIE(InfoExtractor):
@ -1499,6 +1500,11 @@ class GenericIE(InfoExtractor):
if bc_urls:
return _playlist_from_matches(bc_urls, ie='BrightcoveNew')
# Look for ThePlatform embeds
tp_urls = ThePlatformIE._extract_urls(webpage)
if tp_urls:
return _playlist_from_matches(tp_urls, ie='ThePlatform')
# Look for embedded rtl.nl player
matches = re.findall(
r'<iframe[^>]+?src="((?:https?:)?//(?:www\.)?rtl\.nl/system/videoplayer/[^"]+(?:video_)?embed[^"]+)"',