From 603ac86f0a8ea1d684fe689cb71dd0517b1d78b1 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Wed, 15 Apr 2026 10:27:48 +0100 Subject: [PATCH] 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 --- scripts/transcode-hevc.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/transcode-hevc.sh b/scripts/transcode-hevc.sh index 1e3a646..91b797b 100644 --- a/scripts/transcode-hevc.sh +++ b/scripts/transcode-hevc.sh @@ -128,6 +128,11 @@ saved_bytes=0 while IFS= read -r -d '' file; do total=$((total + 1)) + # Never touch files in downloads directories (still being seeded) + if [[ "$file" == */downloads/* ]]; then + continue + fi + # Skip if already processed if is_done "$file"; then skipped_done=$((skipped_done + 1))