INTERACT FORUM

More => Old Versions => JRiver Media Center 26 for Mac => Topic started by: MattA on February 26, 2020, 12:23:15 am

Title: Bug report: slash (/) in tags leaks through to filenames and directories
Post by: MattA on February 26, 2020, 12:23:15 am
Hello, I've got a bug to report with respect to how JRiver constructs filenames from various tags and such.  It seems to be universal (e.g. applies to both the CD ripping and rename/move tools).

If a tag such as Artist, Album, etc., contains a forward slash character it will "leak" down to the file system and create an unexpected subdirectory.  E.g. if a song by "Art" is titled "X / Y" and it is on an album named "A / B" and the CD ripping filename templates are:

Folder rule: [Artist]\[Album]
Filename rule: [Track #] - [Name]

Then the file will be written to a file such as:

  Bob/A/B/X/Y.flac

when I would expect it to be written to something like:

  Bob/A_B/X_Y.flac

I am working around this like this:

Folder rule: Replace([Artist], /, _)/Replace([Album], /, _)/
Filename rule: [Track #]-Replace([Name], /, _)

It would be great if MC would treat / like :, and convert to _ when generating filenames.
Title: Re: Bug report: slash (/) in tags leaks through to filenames and directories
Post by: bob on February 27, 2020, 12:54:34 pm
I just tried to duplicate this by using the same file save template as you and then inserting a / in a track name. It was replaced with an _

I don't know why it would be different for you. Are you running the current build?
 
Title: Re: Bug report: slash (/) in tags leaks through to filenames and directories
Post by: blgentry on February 27, 2020, 02:24:34 pm
Maybe MattA should send bob a database backup?  I have a whacky theory about some kind of unicode (or other non standard) slash character.  Just spitballing.

Brian.
Title: Re: Bug report: slash (/) in tags leaks through to filenames and directories
Post by: bob on February 27, 2020, 02:59:19 pm
Maybe MattA should send bob a database backup?  I have a whacky theory about some kind of unicode (or other non standard) slash character.  Just spitballing.

Brian.
Sounds possible.
a DB backup could be useful.
Title: Re: Bug report: slash (/) in tags leaks through to filenames and directories
Post by: MattA on February 28, 2020, 10:28:20 am
Thanks Bob and Brian, but turns out this was user error.  ::)

I had unnecessarily unchecked the "Replace slashes in expressions" checkbox in the "Rename, Move, and Copy Files" dialog box.  I believe it defaults to being checked.  It is described here:
https://wiki.jriver.com/index.php/Rename,_Move,_and_Copy_Files#Special_Characters_and_Slashes
 (https://wiki.jriver.com/index.php/Rename,_Move,_and_Copy_Files#Special_Characters_and_Slashes)

With that checkbox enabled I'm back to using the simpler rename rules:

Folder rule: [Artist]\[Album]
Filename rule: [Track #] - [Name]

When the Artist, Album or Name contains a forward slash it is changed to an underscore in the file name, as I had originally expected!