Skip to content

Commit 2453e4f

Browse files
committed
Make tags easier to match unknown CDs in Picard
Whipper added tags like "Unknown Album" that made matching harder, so remove them. And add the discnumber tag, since that's known.
1 parent bc6b22b commit 2453e4f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.local/bin/rip-cd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@ def main():
6161
"SOX_OPTS": "--single-threaded",
6262
},
6363
)
64+
subprocess.run(
65+
(
66+
"metaflac",
67+
"--remove-tag=album",
68+
"--remove-tag=artist",
69+
"--remove-tag=title",
70+
f"--set-tag=discnumber={args.disc_number}",
71+
"--",
72+
*whipper_disc_path.glob("*.flac"),
73+
),
74+
check=True,
75+
)
6476
for whipper_file_path in tuple(whipper_disc_path.iterdir()):
6577
# TODO(https://github.com/python/cpython/issues/56950): Fix this race
6678
# condition.

0 commit comments

Comments
 (0)