Skip downloads directories in transcode-hevc

Files in downloads/ are still being seeded and must not be altered.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-04-15 10:27:48 +01:00
parent 7fe1ccb8a7
commit 603ac86f0a

View file

@ -128,6 +128,11 @@ saved_bytes=0
while IFS= read -r -d '' file; do while IFS= read -r -d '' file; do
total=$((total + 1)) total=$((total + 1))
# Never touch files in downloads directories (still being seeded)
if [[ "$file" == */downloads/* ]]; then
continue
fi
# Skip if already processed # Skip if already processed
if is_done "$file"; then if is_done "$file"; then
skipped_done=$((skipped_done + 1)) skipped_done=$((skipped_done + 1))