projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[crunchyroll] Extract width and height (closes #6749)
[youtube-dl]
/
youtube_dl
/
extractor
/
viewster.py
diff --git
a/youtube_dl/extractor/viewster.py
b/youtube_dl/extractor/viewster.py
index 393b63618a9a872e2b5313e33a6c73eff5a5dccb..cda02ba24b7cc01c317bf5d67ced5f231cfd2a80 100644
(file)
--- a/
youtube_dl/extractor/viewster.py
+++ b/
youtube_dl/extractor/viewster.py
@@
-5,11
+5,13
@@
from .common import InfoExtractor
from ..compat import (
compat_urllib_request,
compat_urllib_parse,
from ..compat import (
compat_urllib_request,
compat_urllib_parse,
+ compat_urllib_parse_unquote,
)
from ..utils import (
determine_ext,
int_or_none,
parse_iso8601,
)
from ..utils import (
determine_ext,
int_or_none,
parse_iso8601,
+ HEADRequest,
)
)
@@
-72,9
+74,9
@@
class ViewsterIE(InfoExtractor):
def _real_extract(self, url):
video_id = self._match_id(url)
# Get 'api_token' cookie
def _real_extract(self, url):
video_id = self._match_id(url)
# Get 'api_token' cookie
- self._request_webpage(
url
, video_id)
+ self._request_webpage(
HEADRequest(url)
, video_id)
cookies = self._get_cookies(url)
cookies = self._get_cookies(url)
- self._AUTH_TOKEN = compat_urllib_parse
.
unquote(cookies['api_token'].value)
+ self._AUTH_TOKEN = compat_urllib_parse
_
unquote(cookies['api_token'].value)
info = self._download_json(
'https://public-api.viewster.com/search/%s' % video_id,
info = self._download_json(
'https://public-api.viewster.com/search/%s' % video_id,