Noch eine Idee
Das Programm Musicbrainz Picard bietet auch Batch Processing an.
Im ersten Schritt eine Textdatei mit den gewünschten Kommandos erstellen:
Code
# Try clustering and lookup the clusters first
CLUSTER
LOOKUP
# Save matched clusters
SAVE_MATCHED
# Clean up and remove the saved files
REMOVE_SAVED
REMOVE_EMPTY
Und dann Picard mit der Textdatei und Angabe des Verzeichnisses der frisch gerippten Dateien starten.
picard -e load "$HOME/Musik" -e FROM_FILE commands.txt
Ergebnis
Vorher:
Code
$ tree Musik/Unknown/
Musik/Unknown/
├── track-01.flac
├── Track-02.flac
├── Track-03.flac
├── Track-04.flac
└── track-05.flac
Nachher:
Code
$ tree Musik/Unknown/
Musik/Unknown/
├── 01 Shine On You Crazy Diamond, Parts 1–5.flac
├── 02 Welcome To The Machine.flac
├── 03 Have A Cigar.flac
├── 04 Wish You Were Here.flac
├── 05 Shine On You Crazy Diamond, Parts 6–9.flac
├── folder (1).jpg
└── folder.jpg
Der Name des Albums hat sich nicht umbenannt, ist aber nur eine Einstellungssache in Picard.
Tags sind natürlich auch geschrieben:
Code
$ exiftool Unknown/04\ Wish\ You\ Were\ Here.flac
ExifTool Version Number : 12.60
File Name : 04 Wish You Were Here.flac
Directory : Musik/Unknown
File Size : 31 MB
File Modification Date/Time : 2023:10:02 03:53:48+02:00
File Access Date/Time : 2023:10:02 03:53:48+02:00
File Inode Change Date/Time : 2023:10:02 03:53:48+02:00
File Permissions : -rw-rw----
File Type : FLAC
File Type Extension : flac
MIME Type : audio/flac
Block Size Min : 4096
Block Size Max : 4096
Frame Size Min : 1679
Frame Size Max : 13184
Sample Rate : 44100
Channels : 2
Bits Per Sample : 16
Total Samples : 15008700
MD5 Signature : 1c5f402eb01da8c1b79416ef49b27966
Vendor : reference libFLAC 1.2.1 20071117
Rating : 100
Albumartist : Pink Floyd
Totaldiscs : 1
Musicbrainz Artistid : 83d91898-7763-47d7-b03b-b92132375c47
Media : 12" Vinyl
Musicbrainz Releasegroupid : 1a272023-10d3-38ee-bab3-317b55fcc21d
Artistsort : Pink Floyd
Releasecountry : XE
Releasetype : album
Script : Latn
Catalognumber : PFRLP9
Originalyear : 1975
Releasestatus : official
Album : Wish You Were Here
Albumartistsort : Pink Floyd
Artist : Pink Floyd
Artists : Pink Floyd
Musicbrainz Albumid : e00db787-d1f2-48cb-88d0-226c612b6ca4
Musicbrainz Releasetrackid : 55ba0caa-abb0-4f67-b924-2781e1af25e1
Musicbrainz Trackid : feecff58-8ee2-4a7f-ac23-dc8ce7925286
Title : Wish You Were Here
Label : Pink Floyd Records
Track Number : 4
ISRC Number : USSM17500255
Originaldate : 1975-09-12
Musicbrainz Albumartistid : 83d91898-7763-47d7-b03b-b92132375c47
Date : 2016-10-14
Barcode : 5099902988016
Totaltracks : 5
Discnumber : 1
Tracktotal : 5
Disctotal : 1
Duration
Alles anzeigen