SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Replacing forward slash when it is also the directory separator

I’m tagging live shows that have album titles like: “2012/08/24 I City, ST”

I manually change the album tag to: “2012-08-24 I City, ST”

I use Mac OS X and Linux, so the file lives somewhere like: “/home/user/music/Band/Album/01 - Title.mp3”

I do not want to change the “/” that are used to separate the directories.

How can I do this in an automated way?

Thanks!

The Ourea

That was fixed in Jaikoz 4.6.3.
If you map ‘/’ to a ‘-’ in

Preferences:File and Folder Correct:File and Folder Naming/Replace ‘From’ Character with ‘To’ Character

then the ‘/’ wlll get changed to ‘-’ when you apply the filename mask without effecting the subfolder

I tried that Paul, perhaps I should have been more specific. Here goes…

File structure obtained via Correct Sub Folders From Metadata:

/home/user/music/(Genre Tag)/(Album Artist Tag)/(Album Tag)/(Track No Tag) - (Title Tag).mp3

Using your suggestion results in:

/home/user/music/Genre-Artist-Album/No - title.mp3

Although it does properly replace the ‘/’ in the date contained with in the Album Tag.

I think what I want is an automated way to replace ‘/’ with ‘-’ within tag values. If the Album Tag value of ‘2012/08/24 City, ST’ could be changed to ‘2012-08-24 City, ST’ in an automated way, then Correct Sub Folder From Metadata would just work.

Clear as mud?

Thanks,

The Ourea

I also tried using the Preferences -> Manipulators -> Word Replacer. I must be using it wrong though, because it didn’t have any effect.

I’m running 4.6.3 build 1113.

Thanks again for your always prompt help!

The Ourea

Hi ah got it, I’m afraid there is a bug.

Your album field contains ‘/’ but you want these to be converted to ‘-’ for the purpose of filenaming but you dont want to the change the album field itself. Because the album field is part of your subfolder mask rather than filename mask you need to run Correct SubFolder form Metadata

If you don’t map ‘-’ to ‘/’ to Preferences:File and Folder Correct:File and Folder Naming/Replace ‘From’ Character with ‘To’ Character then it will create a four subfolders for a field like ‘2012/08/24 I City, ST’. Whereas if you do map it then all ‘/’ get converted to ‘-’ and you end up with just one folder.

The second case should not happen, but the bug I fixed only helped with mapping ‘/’ to ‘-’ in the filename part. i.e if the artist name was ‘AD/DC’ and the filename mask was artist then the the generated filename (for an mp3) would be AC-DC.mp3 but I didn’t consider this problem properly for the subfolder part.

I’ll ensure fixed for next release

Yes! You understand! Er, almost :slight_smile:

Looks like there is a bug, and you understand it and it will be fixed. However, replacing characters at the point of Correct SubFolder from Metadata is not really what I want to do.

I do want to change the album field itself! I want the Album Tag to read 2012-08-24, for consistency with the rest of my collection if nothing else.

I think what I want to use is Preferences:Manipulators:WordReplacer by adding an item to Replacer1 changing ‘/’ to ‘-’. Under Preferences:Local Correct:AutoFormat I have Enable Replacement checked in all three columns and Replacer1 selected in Replace words by another word (all default settings I believe).

By adding Local Correct Album to Autocorrector Tasks under Preferences:Manipulators:Autocorrector or by Action Menu:Local Correct:Correct Albums this does not work.

Am I misunderstanding the intended functionality? Maybe missing some needed checkbox in the settings somewhere? Have my head in my arse?

Thanks again Paul

-The Ourea

[quote=theourea]
I think what I want to use is Preferences:Manipulators:WordReplacer[/quote]
Ah, the problem is that this is only for separating words, i.e sequence of characters that are separated by other words by whitespace. The ‘-’ is not a word, what you want is a Punctuation Replacer but we don’t have that in Jaikoz.

You can’t do what you like completely automatically but you can do this pretty easily nevertheles.

Select Edit/Find and Replace
Put / into Find field
Put - into Replace field
Select Album in the field drop down
Select Replace All

and your done.

Eureka!

While it’s not ideal, it is way better than what I was doing, as it can be used on all bands for all shows from summer tour in one fell swoop!

And, we made the software a little better along the way by identifying that bug.

Now, back to tagging :slight_smile:

Thanks Paul!!!

The Ourea