From 0889c40bb5f0c08a8d39611a78f2fb4d7f77470d Mon Sep 17 00:00:00 2001 From: grglcy Date: Wed, 2 Apr 2025 12:09:17 +0100 Subject: [PATCH] don't transcode if DONE file in dir --- src/transcode/transcoder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/transcode/transcoder.py b/src/transcode/transcoder.py index bd0403b..f511366 100644 --- a/src/transcode/transcoder.py +++ b/src/transcode/transcoder.py @@ -24,7 +24,10 @@ class Transcoder: if album.is_dir(): for file in album.iterdir(): if file.is_file(): - transcode_list.append(file) + if file.name == "DONE": + break + else: + transcode_list.append(file) else: self.log.warning("TRK", f"Warning, skipping non-dir '{album}' found in artist '{artist.parts[-1]}'") continue