aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/sonyliv.py
diff options
context:
space:
mode:
authorsprhawk <465558+sprhawk@users.noreply.github.com>2017-12-26 22:27:26 +0800
committersprhawk <465558+sprhawk@users.noreply.github.com>2017-12-26 22:27:26 +0800
commitc33de004e13da11f1ae3cad7310b36500cfb9d28 (patch)
treec742e448af6c126eca4b259c85f83177aec54847 /youtube_dl/extractor/sonyliv.py
parent42a1012c7767306626c5358a18ad3e86417bd7b7 (diff)
parentdb145ee54a57f5ccc89639de8c589eb111a91b19 (diff)
downloadyoutube-dl-c33de004e13da11f1ae3cad7310b36500cfb9d28.zip
youtube-dl-c33de004e13da11f1ae3cad7310b36500cfb9d28.tar.gz
youtube-dl-c33de004e13da11f1ae3cad7310b36500cfb9d28.tar.bz2
Merge branch 'master' of github.com:rg3/youtube-dl into weibo
Diffstat (limited to 'youtube_dl/extractor/sonyliv.py')
-rw-r--r--youtube_dl/extractor/sonyliv.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/youtube_dl/extractor/sonyliv.py b/youtube_dl/extractor/sonyliv.py
index accd112..c3078e2 100644
--- a/youtube_dl/extractor/sonyliv.py
+++ b/youtube_dl/extractor/sonyliv.py
@@ -2,6 +2,7 @@
from __future__ import unicode_literals
from .common import InfoExtractor
+from ..utils import smuggle_url
class SonyLIVIE(InfoExtractor):
@@ -10,12 +11,12 @@ class SonyLIVIE(InfoExtractor):
'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',
+ 'id': 'ref:5024612095001',
'ext': 'mp4',
- 'upload_date': '20160707',
+ 'upload_date': '20170923',
'description': 'md5:7f28509a148d5be9d0782b4d5106410d',
- 'uploader_id': '4338955589001',
- 'timestamp': 1467870968,
+ 'uploader_id': '5182475815001',
+ 'timestamp': 1506200547,
},
'params': {
'skip_download': True,
@@ -26,9 +27,11 @@ class SonyLIVIE(InfoExtractor):
'only_matching': True,
}]
- BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/4338955589001/default_default/index.html?videoId=%s'
+ # BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/4338955589001/default_default/index.html?videoId=%s'
+ BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/5182475815001/default_default/index.html?videoId=ref:%s'
def _real_extract(self, url):
brightcove_id = self._match_id(url)
return self.url_result(
- self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, 'BrightcoveNew', brightcove_id)
+ smuggle_url(self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, {'geo_countries': ['IN']}),
+ 'BrightcoveNew', brightcove_id)