aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-01-27 10:53:38 +0100
committerRemita Amine <remitamine@gmail.com>2019-01-27 10:53:38 +0100
commit1fcc91663bc84a599cc613ff1fa0e4bc15f42a9e (patch)
treeaeff4acdfbfc2bd0af33ea9282d0e2c0cfc1cd0f
parent30cd1a5f3920d7485225a5d57b6ce41be4cde672 (diff)
[vice] fix extraction for locked videos(closes #16248)
-rw-r--r--youtube_dl/extractor/vice.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/vice.py b/youtube_dl/extractor/vice.py
index 538258617..8fdfd743d 100644
--- 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,
}]
- _PREPLAY_HOST = 'vms.vice'
@staticmethod
def _extract_urls(webpage):
@@ -158,9 +157,8 @@ class ViceIE(AdobePassIE):
})
try:
- host = 'www.viceland' if is_locked else self._PREPLAY_HOST
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):