mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-28 08:11:03 +00:00
[noco] Encode before passing to hashlib.md5 (Closes #3816)
This commit is contained in:
parent
632e5684ce
commit
f7d159cf95
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ def _login(self):
|
||||||
|
|
||||||
def _call_api(self, path, video_id, note):
|
def _call_api(self, path, video_id, note):
|
||||||
ts = compat_str(int(time.time() * 1000))
|
ts = compat_str(int(time.time() * 1000))
|
||||||
tk = hashlib.md5(hashlib.md5(ts).hexdigest() + '#8S?uCraTedap6a').hexdigest()
|
tk = hashlib.md5((hashlib.md5(ts.encode('ascii')).hexdigest() + '#8S?uCraTedap6a').encode('ascii')).hexdigest()
|
||||||
url = self._API_URL_TEMPLATE % (path, ts, tk)
|
url = self._API_URL_TEMPLATE % (path, ts, tk)
|
||||||
|
|
||||||
resp = self._download_json(url, video_id, note)
|
resp = self._download_json(url, video_id, note)
|
||||||
|
|
Loading…
Reference in a new issue