From 3d10e8558f54228f2b7b53cec68cdadea0024e93 Mon Sep 17 00:00:00 2001 From: quackerd Date: Thu, 18 Feb 2021 17:13:28 -0500 Subject: [PATCH] +no match --- musick.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/musick.py b/musick.py index 791cd4c..8e07505 100644 --- a/musick.py +++ b/musick.py @@ -108,12 +108,13 @@ def usage(): -c cover : cover arts page\n") +no_match = [] + def process_file(f: str, odir: str): global total_cover global total_succ global total_error global total_proc - try: print("Processing file - " + f) total_proc += 1 @@ -167,6 +168,8 @@ def process_file(f: str, odir: str): id3.add(APIC(3, "image/jpeg", 3, "Front cover", cover_arts[cover_idx][3])) total_cover += 1 print(" Written cover art - " + cover_arts[cover_idx][4]) + else: + no_match.append(target_f) id3.save(v2_version=3) @@ -223,5 +226,7 @@ def main(): process_directory(input_dir, output_dir) print("\nSummary - Total Files: " + str(total_proc) + " Total Errors: " + str(total_error) + " Total Covers: " + str(total_cover)) + for each in no_match: + print("No match: " + each) main()