rstemmer / id3edit

🛠 id3edit is a command line tool to edit and debug ID3v2 tags of mp3 files supporting Unicode.
GNU General Public License v3.0
31 stars 4 forks source link

Batch edit ? #27

Open roubachof opened 1 year ago

roubachof commented 1 year ago

I try to batch update the genre of a whole directory:

~/Music/Trees - Trees (50th Anniversary Edition)$ id3edit --set-genre "Folk" *.mp3

Invalid Argument: "Trees - Trees (50th Anniversary Edition) - 01 Nothing Special.mp3"
id3edit [2.1.3]

 id3edit --help
 id3edit --version
 id3edit options mp3file

But it doesn't seem to work... Any additional argument to use ?

rstemmer commented 1 year ago

The original use-case of id3edit was to inspect and repair broken tags. This is why the application expects only a single file. Still, your use-case is quiet reasonable, so I will make this ticket a feature request :)

It might be not that easy to implement, because parameters like --set-name make no sense in such cases.

There is a good Linux-Style way to perform batch-processing files with id3edit (or any other application even if the application does not support processing multiple files at once: find. (One might call this a workaround.)

find . -name "*.mp3" -exec id3edit --set-genre "Folk" {} \;
# Find all mp3 files in the current directory and its sub directory.
# Execute a command line (from -exec to \;) for each found file,
# and place its path (of the found file) at the location of {}.

I hope the find-solution helps you. Due to too may hobbies and work, you better not wait for batch-processing being implemented in id3edit :smile:

roubachof commented 1 year ago

Thanks so much for your answer :) Yes I used the find "way" for now. Really nice software, the help menu is just "wow" :)