SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

FileRenameListener

Hi!

It would be cool if I could plug in a Java class that gets called whenever
Jaikoz renames/moves a file.

My family hates me every time I run any kind of auto-tagger, since it breaks their WinAmp/Windows Media Player playlists :twisted:

If I could capture the rename/moves then I could write a program that automatically updates the playlists.

Suggested interface:

public interface FileRenameListener {
  public void fileRenamed(java.io.File oldFile, java.io.File newFile);
}

Regards,
Olle

That is an interesting idea, I would also like to add some kind of plugin facility to allow additional tasks to be performed. However I cant see me doing either of these things in the near future.

A simpler solution: log file rename operations to a file, in a line-oriented format for simpler parsing.

The name of the file could be hard-coded to e.g., /log/renamed-files.log

This is probably much cheaper to implement, but it would also solve my problem!

Suggested format

where yyyy-mm-dd is the date the file was renamed, HH:MM:SS is the time of day (24-hour clock).

The columns are separated by tab characters, since tabs aren’t allowed in filenames in neither Windows, Linux nor OS X.

Would it not be easier to not use the Rename Subfolder/Filename options and just manually rename files as required ?

But this is IMO one of the main rationales for using an auto-tagger!
Consistent ID3 tags is fine, but consistent naming of folders and files is also important!

I’m not fond of having thousands of mp3 files with arbitrary file names, depending on how other people have configured their CD rippers. I want a predictable file system structure.

Doing the folder/file renaming manually is simply not an option, with three daughters downloading songs faster to the same shared root folder faster than you can say Chaos!

Regards,
Olle

Ok, I’ll add it to the todo list

Never mind!

I found that the information I need already is written to jaikozuser0-0.log :slight_smile:

(I didn’t even realize that there was a log file, since I hadn’t RTFM properly!)

Regards,
Olle