aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/generic.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-12-21 04:24:58 +0100
committerremitamine <remitamine@gmail.com>2015-12-21 04:24:58 +0100
commit7cb09524749d4a061acc801d0a2d6ad08463e549 (patch)
treeab769aa8a8d1cce53103e848334bb79137f3d0b3 /youtube_dl/extractor/generic.py
parent78653a33aa00ba5205940c2baac5d9f019795b88 (diff)
downloadyoutube-dl-7cb09524749d4a061acc801d0a2d6ad08463e549.tar.xz
[makertv] improve extraction
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 4d38b0c9d..f5dd88f54 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -53,6 +53,7 @@ from .onionstudios import OnionStudiosIE
from .snagfilms import SnagFilmsEmbedIE
from .screenwavemedia import ScreenwaveMediaIE
from .mtv import MTVServicesEmbeddedIE
+from .jwplatform import JWPlatformIE
class GenericIE(InfoExtractor):
@@ -1787,6 +1788,11 @@ class GenericIE(InfoExtractor):
if snagfilms_url:
return self.url_result(snagfilms_url)
+ # Look for JWPlatform embeds
+ jwplatform_url = JWPlatformIE._extract_url(webpage)
+ if jwplatform_url:
+ return self.url_result(jwplatform_url, 'JWPlatform')
+
# Look for ScreenwaveMedia embeds
mobj = re.search(ScreenwaveMediaIE.EMBED_PATTERN, webpage)
if mobj is not None: