projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
30cd1a5
)
[vice] fix extraction for locked videos(closes #16248)
author
Remita Amine
<remitamine@gmail.com>
Sun, 27 Jan 2019 09:53:38 +0000
(10:53 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Sun, 27 Jan 2019 09:53:38 +0000
(10:53 +0100)
youtube_dl/extractor/vice.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vice.py
b/youtube_dl/extractor/vice.py
index 5382586176b321c4e4f877e8f7cef7a5c22d0663..8fdfd743d04a6ee4319a64337ea67398d2243896 100644
(file)
--- a/
youtube_dl/extractor/vice.py
+++ b/
youtube_dl/extractor/vice.py
@@
-94,7
+94,6
@@
class ViceIE(AdobePassIE):
'url': 'https://www.viceland.com/en_us/video/thursday-march-1-2018/5a8f2d7ff1cdb332dd446ec1',
'only_matching': True,
}]
'url': 'https://www.viceland.com/en_us/video/thursday-march-1-2018/5a8f2d7ff1cdb332dd446ec1',
'only_matching': True,
}]
- _PREPLAY_HOST = 'vms.vice'
@staticmethod
def _extract_urls(webpage):
@staticmethod
def _extract_urls(webpage):
@@
-158,9
+157,8
@@
class ViceIE(AdobePassIE):
})
try:
})
try:
- host = 'www.viceland' if is_locked else self._PREPLAY_HOST
preplay = self._download_json(
preplay = self._download_json(
- 'https://
%s.com/%s/video/preplay/%s' % (host,
locale, video_id),
+ 'https://
vms.vice.com/%s/video/preplay/%s' % (
locale, video_id),
video_id, query=query)
except ExtractorError as e:
if isinstance(e.cause, compat_HTTPError) and e.cause.code in (400, 401):
video_id, query=query)
except ExtractorError as e:
if isinstance(e.cause, compat_HTTPError) and e.cause.code in (400, 401):