projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
684ae10
)
[sonyliv] extract higher quality formats and bypass geo restriction(closes #14922)
author
Remita Amine
<remitamine@gmail.com>
Thu, 7 Dec 2017 07:46:30 +0000
(08:46 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Thu, 7 Dec 2017 07:46:30 +0000
(08:46 +0100)
youtube_dl/extractor/sonyliv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/sonyliv.py
b/youtube_dl/extractor/sonyliv.py
index accd112aa284c4a91ee5c2c28c5b339014e4fc4a..c3078e285799ab9d159a072d67bf560ee03bd25b 100644
(file)
--- 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 __future__ import unicode_literals
from .common import InfoExtractor
+from ..utils import smuggle_url
class SonyLIVIE(InfoExtractor):
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",
'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',
'ext': 'mp4',
- 'upload_date': '201
60707
',
+ 'upload_date': '201
70923
',
'description': 'md5:7f28509a148d5be9d0782b4d5106410d',
'description': 'md5:7f28509a148d5be9d0782b4d5106410d',
- 'uploader_id': '
4338955589
001',
- 'timestamp': 1
467870968
,
+ 'uploader_id': '
5182475815
001',
+ 'timestamp': 1
506200547
,
},
'params': {
'skip_download': True,
},
'params': {
'skip_download': True,
@@
-26,9
+27,11
@@
class SonyLIVIE(InfoExtractor):
'only_matching': True,
}]
'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(
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)