diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-03-07 22:34:44 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-03-07 22:34:44 +0600 |
commit | d47ae7f620e3b7be2387da2a61b618a3730d932a (patch) | |
tree | 5157572cf1cfaecc7e355a0456958b2c46e31141 /youtube_dl/extractor | |
parent | 135c9c42bf272c667f38a0a42e97e381fe53df91 (diff) |
[eagleplatform] Add support for ClipYou embeds
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/generic.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index a12b29da1..013198b0d 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -584,6 +584,18 @@ class GenericIE(InfoExtractor): 'age_limit': 0, }, }, + # ClipYou (Eagle.Platform) embed (custom URL) + { + 'url': 'http://muz-tv.ru/play/7129/', + 'info_dict': { + 'id': '12820', + 'ext': 'mp4', + 'title': "'O Sole Mio", + 'thumbnail': 're:^https?://.*\.jpg$', + 'duration': 216, + 'view_count': int, + }, + }, # RSS feed with enclosure { 'url': 'http://podcastfeeds.nbcnews.com/audio/podcast/MSNBC-MADDOW-NETCAST-M4V.xml', @@ -1175,6 +1187,12 @@ class GenericIE(InfoExtractor): if mobj is not None: return self.url_result(mobj.group('url'), 'EaglePlatform') + # Look for ClipYou (uses Eagle.Platform) embeds + mobj = re.search( + r'<iframe[^>]+src="https?://(?P<host>media\.clipyou\.ru)/index/player\?.*\brecord_id=(?P<id>\d+).*"', webpage) + if mobj is not None: + return self.url_result('eagleplatform:%(host)s:%(id)s' % mobj.groupdict(), 'EaglePlatform') + def check_video(vurl): if YoutubeIE.suitable(vurl): return True |