diff options
author | Sukhbir Singh <sukhbir@riseup.net> | 2016-08-07 19:11:00 -0400 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-08-09 02:09:13 +0700 |
commit | 8991844ea260a17943e935acfd5565caab27a99e (patch) | |
tree | d9be4aa5743eac18e0c8565e9bac854c16354469 /youtube_dl/extractor | |
parent | 082395d0a0f21375f63e3c9b33011b30d5de3aae (diff) |
[sonyliv] Add new extractor
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/extractors.py | 1 | ||||
-rw-r--r-- | youtube_dl/extractor/sonyliv.py | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index 7ede6afda..f1043dae6 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -756,6 +756,7 @@ from .smotri import ( ) from .snotr import SnotrIE from .sohu import SohuIE +from .sonyliv import SonyLIVIE from .soundcloud import ( SoundcloudIE, SoundcloudSetIE, diff --git a/youtube_dl/extractor/sonyliv.py b/youtube_dl/extractor/sonyliv.py new file mode 100644 index 000000000..c717b1f4d --- /dev/null +++ b/youtube_dl/extractor/sonyliv.py @@ -0,0 +1,28 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor + + +class SonyLIVIE(InfoExtractor): + _VALID_URL = r'http?://(?:www\.)?sonyliv\.com/details/episodes/(?P<id>[0-9]+)/' + _TEST = { + 'url': 'http://www.sonyliv.com/details/episodes/5024612095001/Ep.-1---Achaari-Cheese-Toast---Bachelor\'s-Delight', + 'info_dict': { + 'title': 'Ep. 1 - Achaari Cheese Toast - Bachelor\'s Delight', + 'id': '5024612095001', + 'ext': 'mp4', + 'upload_date': '20160707', + 'description': 'Bachelor\'s Delight is a new food show from Sony LIV to satisfy the taste buds of all those bachelors looking for a quick bite.', + 'uploader_id': '4338955589001', + 'timestamp': 1467870968, + }, + 'params': { + 'skip_download': True, + }, + 'add_ie': ['BrightcoveNew'], + } + BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/4338955589001/default_default/index.html?videoId=%s' + + def _real_extract(self, url): + return self.url_result(self.BRIGHTCOVE_URL_TEMPLATE % self._match_id(url), 'BrightcoveNew') |