From 9d47c29495acbfd16ecbb43d925e53da86447d14 Mon Sep 17 00:00:00 2001 From: Ben_Kosytorz Date: Sun, 4 Oct 2026 18:49:50 +0200 Subject: [PATCH] Fix gofile website-token crash: int(time()) -> int(time.time()) --- dlphelper/gofile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlphelper/gofile.py b/dlphelper/gofile.py index afc0867..aeb3d7e 100644 --- a/dlphelper/gofile.py +++ b/dlphelper/gofile.py @@ -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()