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()