From 9a112441154954cd95eabebb1815d3fadb787166 Mon Sep 17 00:00:00 2001 From: grglcy Date: Fri, 10 May 2024 16:12:22 +0100 Subject: [PATCH] Touch 'DONE' file in completed albums --- src/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.py b/src/main.py index 692dfbd..db5fb1f 100644 --- a/src/main.py +++ b/src/main.py @@ -59,6 +59,8 @@ def main(input_dir: Path, output_dir: Path, encoder: Path): print(f"Skipping '{artist.parts[-1]} / {album.parts[-1]}'") else: album_out.mkdir() + done_file = album / 'DONE' + open(done_file, 'a').close() for track in album.iterdir(): if track.is_file() and track.suffix.lower() == '.flac': transcode_list.append((str(track), str(album_out / f"{track.stem}.opus")))