[Logo] Jaikoz and SongKong Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
FileRenameListener  XML
Forum Index -> Jaikoz Wishlist
Author Message
ollehallin



Joined: 03/10/2007 13:00:33
Messages: 6
Offline

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

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

Suggested interface:

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


Regards,
Olle
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7547
Offline

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.

thanks Paul (Administrator)
ollehallin



Joined: 03/10/2007 13:00:33
Messages: 6
Offline

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., <jaikoz-home>/log/renamed-files.log

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

Suggested format

Code:
yyyy-mm-dd HH:MM:SS oldName newName

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.
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7547
Offline

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

thanks Paul (Administrator)
ollehallin



Joined: 03/10/2007 13:00:33
Messages: 6
Offline

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
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7547
Offline

Ok, I'll add it to the todo list

thanks Paul (Administrator)
ollehallin



Joined: 03/10/2007 13:00:33
Messages: 6
Offline

Never mind!

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

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

Regards,
Olle

 
Forum Index -> Jaikoz Wishlist
Go to:   
Powered by JForum 2.1.6 © JForum Team