Skip to content

[Bug] REMOVE_TMP_FILES_AFTER_DOWNLOAD env not honoured #65

@m4teh

Description

@m4teh

After discovering a large tmp file buildup and clearing it out, I realised the download output was keeping the tmp files - that's fine. However, even after I defined env variable REMOVE_TMP_FILES_AFTER_DOWNLOAD=true, the tmp files are still retained, and the download output confirms such action.

✅ Copied to: 59 Minutes of The Best Drug Science and Psychedelics Moments 2025.mkv
📋 Original kept in: youtube-viXs2L-CV-M/final.mkv
⚠️ Format 313+251-drc marked as 'incomplete' (size: 2933.89MiB, expected: 2884.68MiB, diff: 49.21MiB exceeds tolerance)
📊 Final file size: 2933.89MiB (accurate measurement)

root@Tower:/mnt/user/youtube/tmp# ls
youtube-viXs2L-CV-M/
root@Tower:/mnt/user/youtube/tmp# ls -al youtube-viXs2L-CV-M/
total 6014083
drwxr-xr-x 1 user 1000 7 Dec 20 19:50 ./
drwxr-xr-x 1 user 1000 2 Dec 20 19:43 ../
-rw-r--r-- 1 user 1000 3076409068 Dec 20 19:50 final.mkv
-rw-r--r-- 1 user 1000 507 Dec 20 19:51 status.json
-rw-r--r-- 1 user 1000 265590 Dec 20 19:44 subtitles.en.srt
-rw-r--r-- 1 user 1000 664212 Dec 20 19:43 url_info.json
-rw-r--r-- 1 user 1000 3076501602 Dec 20 19:44 video-313+251-drc.mkv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions