Clean up leftover temp files on transcode-hevc startup

Removes any .transcode-* files left behind by interrupted runs
before starting the encoding loop.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-04-15 22:55:53 +01:00
parent 7ef39af81b
commit 3c6e86aca9

View file

@ -156,6 +156,12 @@ else
SEEDED_SIZES=""
fi
# Clean up leftover temp files from interrupted runs
while IFS= read -r -d '' tmpfile; do
log "Cleaning up leftover temp file: $tmpfile"
rm -f "$tmpfile"
done < <(find "$SEARCH_DIR" -type f -name ".transcode-*" -print0)
# Counters
total=0
skipped_hevc=0