SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Java Rename mask for Correct Metadata from Filename?

My files come in only 2 naming conventions:
Title.mp3
Artist - title.mp3

When using Jaikoz to get the info into the metadata, using “Correct Metadata From Filename”…I’d like to escape digging deep into preferences every time the file naming style changes.

  1. Can “File and Folder Correct>Correct Metadata from Filename>Rename mask” be a java function?

  2. If so, What is the right way to code something like:
    filename.indexOf("-") = -1 ? %title% : %artist% - %title%

thanks

No it cant at the moment, this function did actually used to try and work out the format of the filename but was too inaccurate. This function has been a bit neglected, but mainly because for all songs that have acoustids linked to a recordingid the title and artist can be ascertained anyway.

Based on how preferences are stored, would it work to have a BAT file or something that swapped two settings files…or would jaikoz need to be restarted?

I work with some very obscure and old material, and cannot begin to rely on web based titling. And I’d like to not have to fuss with deep drilling into the preferences every two minutes when the file titling is in fact purposefully quite careful.

No sorry it woudn’t work ( there is an issue open for allowing multiple preference configurations and if this was done it would be useful for you)

Let me suggest this:

Ensure Show View Pane is enabled, try Match Metadata from Musicbrainz and then just use Edit:Revert Changes to undo the ones done wrong. I think you’ll find that although it would not match all, of the ones it did match very few would be wrong, if they are I would be interested in seeing some examples.

I have never once tried musicbrainz and found it was worth my while; but I don’t typically work with over the counter digital files.

Till the multi-pref-config shows up, Macro Express to the rescue.

Thanks

Well its your choice but Musicbrainz supports a wide variety of music of all types Im sure at least some of your songs would be matched this way.

There must be something Im not getting about musicbrainz. At least 75% efforts don’t find matches. After your last tip above, I loaded a Bob Dylan album folder that came from unknown source. It found matches, but took 5 minutes…then labeled tracks “Track 1” etc. Little help. When the file name is in the file already, any 5 minutes wait is maddening.

I came up with a funny solution in Jaikoz, involving 4 buttons; "add to start: 'xxxx - ’ " in highlighted filenames. Fill tags from filename. remove 'xxx - ’ artist mask. Correct file name from tag.

Works ! but macro express gave me a speedy hotkey solution, so we’re good.

[quote=999jaikoz]There must be something Im not getting about musicbrainz. At least 75% efforts don’t find matches. After your last tip above, I loaded a Bob Dylan album folder that came from unknown source. It found matches, but took 5 minutes
[/quote]
Jaikoz works better if applied to larger sets rather than one album a ta time, but will get alot dfaster soon when moved to using my own server instead of the Musicbrainz server.

That doesnt make any sense, if you send me your support files (Advanced:Create Support Files) I can probably work out what has gone wrong.

[quote=999jaikoz]
I came up with a funny solution in Jaikoz, involving 4 buttons; "add to start: 'xxxx - ’ " in highlighted filenames. Fill tags from filename. remove 'xxx - ’ artist mask. Correct file name from tag.

Works ! but macro express gave me a speedy hotkey solution, so we’re good.[/quote]
Great, good lateral thinking !