fix overwrite none serialization

This commit is contained in:
Simon 2025-12-15 21:24:01 +07:00
parent 14c47695d7
commit 360c621e66
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 3 additions and 0 deletions

View File

@ -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 = [