nebhead / PlexPostProc

Plex PostProcessing Script for DVR(Beta)
77 stars 30 forks source link

Cleanup of temp files and further log spam reduction #25

Closed apassiou closed 2 years ago

apassiou commented 2 years ago

3 main changes:

1) Log will no longer be spammed if there is a lockfile. instead message will print once and then '.' will be printed every minute as it waits.

2) mktemp in original implementation left artifacts in /tmp folder every time transcode would happen. These are now cleaned up immediately after mktemp is used (for lockfile and for mkv temp file).

3) There is no longer sledgehammer deletion of files that may have been made by other processes. If everything is working well then the script will clean up its own files only. So only tmp.* it creates and only lockfiles it creates.