Skip to content

Commit 93f973d

Browse files
committed
Fixe temporary files were not deleted as expected
1 parent 2b2a2e6 commit 93f973d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/ytdl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def delete_tmpfile(self):
210210
if not os.path.isdir(self.download_dir):
211211
return
212212

213-
tmpfilename = self.tmpfilename.rsplit('.')[0]
213+
tmpfilename = os.path.basename(self.tmpfilename)
214214
def is_tmpfile(filename):
215215
return filename.startswith(tmpfilename)
216216

0 commit comments

Comments
 (0)