I’m trying to learn the Picard plugin API by writing a plugin that reads a file in the same directory as an mp3 file, reads data from it, and adds that to the track’s metadata.
I’m stuck on the first step: “find a file in the same directory as the MP3 file being tagged”. I can’t seem to get the path to the file being tagged. If I had that, I could just
dirname it and look for my data file.
It looks as though I need to
def track_local_file(tagger, metadata, release, track): ... register_track_metadata_processor(track_local_file)
track_local_file is called, none of the arguments seem to have a file or directory path.
Any tips? Thanks,