nicfit/eyeD3

Is it possible to set tags based on the filename ?

Open

#155 opened on Feb 8, 2018

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Python (487 stars) (58 forks)batch import
featurehelp wanted

Description

I had a good read of the documentation but couldn't find anything about this: given a file without tags but with basic information such as track number, title, album and artist encoded in the filename, is it possible to set its tags based on the filename, given a pattern that describe the filename's format ?

Let me explain why I'm looking for this: I split single flac/ape/wv files into wav files and then to mp3, based on their cue files, using shntool. The resulting splitted files have no tags, so I've been using cuetag to set their tags based on the cue file used for splitting them. I then rename the files based on their tags using eyeD3. Before incorporating the mp3 files into my collection, I ran them through mp3diags, and it always detects that the ID3 frames have excessive padding, and I always remove them. It can only be cuetag that's adding this padding to the frames, since it's the only tool in this chain that adds ID3 frames, so I'd like to replace it. As I already use eyeD3 in the chain to rename the files, it seemed logical to use it to set the tags too, either by reading the cue file or getting the info from the filename (I can configure shntool to name the files with tracknumber, title, album and artist). It would be great being able to use eyeD3 for that.

Contributor guide