Fixe temporary files were not deleted as expected

This commit is contained in:
xerdream 2025-08-20 14:29:01 +08:00
parent 2b2a2e69f3
commit 93f973df50

View file

@ -210,7 +210,7 @@ class Download:
if not os.path.isdir(self.download_dir):
return
tmpfilename = self.tmpfilename.rsplit('.')[0]
tmpfilename = os.path.basename(self.tmpfilename)
def is_tmpfile(filename):
return filename.startswith(tmpfilename)