sonyliv.py 1.1 KB

12345678910111213141516171819202122232425262728
  1. # coding: utf-8
  2. from __future__ import unicode_literals
  3. from .common import InfoExtractor
  4. class SonyLIVIE(InfoExtractor):
  5. _VALID_URL = r'http?://(?:www\.)?sonyliv\.com/details/episodes/(?P<id>[0-9]+)/'
  6. _TEST = {
  7. 'url': 'http://www.sonyliv.com/details/episodes/5024612095001/Ep.-1---Achaari-Cheese-Toast---Bachelor\'s-Delight',
  8. 'info_dict': {
  9. 'title': 'Ep. 1 - Achaari Cheese Toast - Bachelor\'s Delight',
  10. 'id': '5024612095001',
  11. 'ext': 'mp4',
  12. 'upload_date': '20160707',
  13. '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.',
  14. 'uploader_id': '4338955589001',
  15. 'timestamp': 1467870968,
  16. },
  17. 'params': {
  18. 'skip_download': True,
  19. },
  20. 'add_ie': ['BrightcoveNew'],
  21. }
  22. BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/4338955589001/default_default/index.html?videoId=%s'
  23. def _real_extract(self, url):
  24. return self.url_result(self.BRIGHTCOVE_URL_TEMPLATE % self._match_id(url), 'BrightcoveNew')