aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/generic.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-09-25 10:52:48 +0100
committerremitamine <remitamine@gmail.com>2015-09-25 10:52:48 +0100
commit6aeba407db84a636fc2522b4f2344eac9e0c1fdb (patch)
tree0ff5dbe53b4242539d747039165e5b340c0b4b25 /youtube_dl/extractor/generic.py
parent0940c5b4c6a068d4919fd29a8db2a85ab3bbf703 (diff)
[jukebox] remove extractor and handle it using generic extractor
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r--youtube_dl/extractor/generic.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 8881a8a23..4d1f75e63 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -50,6 +50,7 @@ from .dailymotion import DailymotionCloudIE
from .onionstudios import OnionStudiosIE
from .snagfilms import SnagFilmsEmbedIE
from .screenwavemedia import ScreenwaveMediaIE
+from .ultimedia import UltimediaIE
class GenericIE(InfoExtractor):
@@ -1029,6 +1030,21 @@ class GenericIE(InfoExtractor):
'ext': 'mp4',
'title': 'cinemasnob',
},
+ },
+ # Ultimedia embed
+ {
+ 'url': 'http://www.jukebox.es/kosheen/videoclip,pride,r303r.html',
+ 'md5': '25551df6e7c7ab8096ceeeae048c5f64',
+ 'info_dict': {
+ 'id': 'r303r',
+ 'ext': 'mp4',
+ 'title': 'Kosheen - Pride (live)',
+ 'thumbnail': 're:^https?://.*\.jpg',
+ 'duration': 293,
+ 'upload_date': '20081103',
+ 'timestamp': 1225733392,
+ 'uploader_id': '33m03',
+ },
}
]
@@ -1751,6 +1767,11 @@ class GenericIE(InfoExtractor):
if mobj is not None:
return self.url_result(unescapeHTML(mobj.group('url')), 'ScreenwaveMedia')
+ # Look for Ulltimedia embeds
+ ultimedia_url = UltimediaIE._extract_url(webpage)
+ if ultimedia_url:
+ return self.url_result(self._proto_relative_url(ultimedia_url), 'Ultimedia')
+
# Look for AdobeTVVideo embeds
mobj = re.search(
r'<iframe[^>]+src=[\'"]((?:https?:)?//video\.tv\.adobe\.com/v/\d+[^"]+)[\'"]',