SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

File renaming

Hi,

first of all sorry if this question has already been raised somewhere, but i was not able to find an appropriate answer so far so i thought it make sense to post it here. I am trying to rename a file based on the metadata. My settings show the following definition:

$if(%album%,%album% - )$if(%trackno%,%trackno% - )$if(%bestartist%,%bestartist% - )%title%

the original file name is e.g.:
Level II - 01 - Blackstreet - Ticket to Ride (Intro).Mp3

when i perform the auto correction the file is named:
Level II - 01 - Blackstreet - Ticket to Ride (intro)(1).mp3

this looks ok at the first sight, however the (1) at the end does not make sense to me. I have not found the field this information is coming from yet. The title shows:
Ticket to Ride (intro)
The sort title shows:
Ticket to Ride (intro)

can somebody help here?
Thanks
Thorsten

The (1) is added if the filename would otherwise clash with another file, do you have two copies of the file in the same folder ?

No there is only the file i want to rename in the folder. Is it possible that the program thinks the file is already there as only the “M” from “.Mp3” is changed to an lower case “m”. The file is not changed in other areas.

The M is changed because .mp3 is the usual suffix not .Mp3 but as I said the reason it has added (1) is because it thinks that there is a :

Level II - 01 - Blackstreet - Ticket to Ride (Intro).mp3 (or Level II - 01 - Blackstreet - Ticket to Ride (Intro).Mp3) file

If this isn’t the case your support files (Advanced/Create Support Files) might give more information.

Yes Paul you are right, there is a file with that name. However that is the file i would like to rename. Wouldn’t it make sense to just overwrite the name as it is the same file and not a second additional file. I noticed that with quite often when i was editing full albums. I always edit a whole album, so quite often only a few tags changed. However i would have to keep track of what tags changed when i rename the files, as all the files that haven’t changed would get a (1) at the end.

In general i think this feature is quite helpful when you have duplicates. However if it is the same file and not a second file with the same name, it should just overwrite the name of the file you want to change. Right now it thinks it is a second file.

Does that make sense at all :slight_smile:

Thanks
Thorsten

Tom, no it doesn’t make sense.

Jaikoz should only add (1) if there is another file with the same name. if the only file with this name is the file you are changing then of course it shouldn’t add (1) to the end. If it did this you would be getting (1) added to EVERY file wouldnt you, but you are not getting that, so I dont understand what is going on for you.

Paul, sorry for not being clear here. Let me try to explain with screenshots what i mean.
i have one file in the folder which i want to proceed through jaikoz

By thoasty at 2010-11-27

i drag the file into Jaikoz

and perform a “rename file based on tag information”

As you can see, the file name ha been changed. The reason the file name has been changed by Jaikoz was because the m in “.mp3” was capital. However it also added a (1) to the end of the file name although this is the only file in the folder. When i save my changes in Jaikoz it renames the file in the folder accordingly.

From my point of view, there is no reason to add a (1) to the file right?
Thanks
Thorsten

Let me give you one more example where i am having issues with renaming files. I am just trying to understand whether i do something wrong.

I am trying to edit an album and all files of this album are stored in one folder on my disc.

I added the files to jaikoz and i successfully received a PUID and the tag information from musikbrainz. As you see it updated various tag field of the tracks:

When i select all files and update the file name based on the tags, it also adds a (1) for the files where the song name has not changed.

This forces me to select only the tracks where the track title has not changed and then perform a “change file name based on tab information”. However when i do this, it changes the album title also (capital t to lower case T) So the naming is not consistent.

Hope this helps making clear what problem i am facing.
Thanks
Thorsten

Hi, yes its a bug which Ive now replicated.

The problem occurs when you have a file ending in .Mp3 you do file rename and there is no actual change apart from .mp3, then the code gets confused and thinks there is a duplicate and adds (1).

It ONLY happens if your files end in .Mp3 , this was not anything I had checked because Ive only seen files labelled as .mp3. So I’ll fix in next release but the workaround is quite simple

Run Correct Filename from Metadata
Save Changes
Run Correct Filename from Metadata AGAIN (this will fix things)
Save Changes

Thanks for clarification, at least i know i did everything correctly. The workaround works fine thanks.

Just wanted to add one thing, it also happens to me when the code changes a capital case to a lower case within the filename. No matter if it is within the .Mp3 or not.

Thx Thorsten, thats useful to know and I’ll make sure its fixed for the next release.