From 30830a94e8c949d4f0755f7fc79079591a340ed4 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Mon, 25 Aug 2025 17:50:47 +0300 Subject: [PATCH] fix info extracting expired to use epoch as it is the ended instead of timestamp. --- app/library/Download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/library/Download.py b/app/library/Download.py index fff8db9f..73577a8d 100644 --- a/app/library/Download.py +++ b/app/library/Download.py @@ -229,7 +229,7 @@ class Download: # Safe-guard incase downloading take too long and the info expires. if self.info_dict and isinstance(self.info_dict, dict) and self.download_info_expires > 0: - _ts: int | None = self.info_dict.get("timestamp") + _ts: int | None = self.info_dict.get("epoch", self.info_dict.get("timestamp", None)) _ts = datetime.fromtimestamp(_ts, tz=UTC) if _ts else None if not _ts or (datetime.now(tz=UTC) - _ts).total_seconds() > self.download_info_expires: self.info_dict = None