From 360c621e6690d43cbb4073c847316646cc1578a3 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 15 Dec 2025 21:24:01 +0700 Subject: [PATCH] fix overwrite none serialization --- backend/download/src/yt_dlp_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/download/src/yt_dlp_handler.py b/backend/download/src/yt_dlp_handler.py index a5702a4f..ad95abe4 100644 --- a/backend/download/src/yt_dlp_handler.py +++ b/backend/download/src/yt_dlp_handler.py @@ -326,6 +326,9 @@ class DownloadPostProcess(DownloaderBase): for channel_id, value in self.channel_overwrites.items(): if "autodelete_days" in value: autodelete_days = value.get("autodelete_days") + if autodelete_days is None: + continue + print(f"{channel_id}: delete older than {autodelete_days}d") now_lte = str(self.now - autodelete_days * 24 * 60 * 60) must_list = [