aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/generic.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-05-22 06:52:39 +0600
committerSergey M․ <dstftw@gmail.com>2016-05-22 06:52:39 +0600
commit4d8819d2492e10f10bd09490f8f203d2f5e2cac4 (patch)
treef233c65424af1ad78cdddfbd4bb45e59e5fdcee5 /youtube_dl/extractor/generic.py
parent898f4b49ccc828f86a075d656aa9a1e1428e538c (diff)
[extractor/generic] Add support for theplatform embeds (Closes #8636, closes #9476)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r--youtube_dl/extractor/generic.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index c368f08e1..ad6a40730 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -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[^"]+)"',