don't transcode if DONE file in dir

This commit is contained in:
George Lacey 2025-04-02 12:09:17 +01:00
parent 965197cd6a
commit 0889c40bb5

View File

@ -24,6 +24,9 @@ class Transcoder:
if album.is_dir():
for file in album.iterdir():
if file.is_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]}'")