id3edit icon indicating copy to clipboard operation
id3edit copied to clipboard

Batch edit ?

Open roubachof opened this issue 2 years ago • 2 comments

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 ?

roubachof avatar Apr 24 '23 09:04 roubachof

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:

rstemmer avatar Apr 24 '23 15:04 rstemmer

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

roubachof avatar Apr 24 '23 17:04 roubachof