Fix gofile website-token crash: int(time()) -> int(time.time())

This commit is contained in:
2026-10-04 18:49:50 +02:00
parent edf6d46cd2
commit 9d47c29495
+1 -1
View File
@@ -117,7 +117,7 @@ class GoFileClient:
self._token = None
def _website_token(self) -> str:
window = int(time()) // TOKEN_WINDOW_SEC
window = int(time.time()) // TOKEN_WINDOW_SEC
seed = f"{USER_AGENT}::{LOCALE}::{self._token}::{window}::{TOKEN_SECRET}"
return hashlib.sha256(seed.encode()).hexdigest()