Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backups
youtube-dl
Commits
1fcc9166
Commit
1fcc9166
authored
Jan 27, 2019
by
Remita Amine
Browse files
[vice] fix extraction for locked videos(closes #16248)
parent
30cd1a5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
youtube_dl/extractor/vice.py
youtube_dl/extractor/vice.py
+1
-3
No files found.
youtube_dl/extractor/vice.py
View file @
1fcc9166
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment