INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Bug report: slash (/) in tags leaks through to filenames and directories  (Read 841 times)

MattA

  • Recent member
  • *
  • Posts: 5

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

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13931
Re: Bug report: slash (/) in tags leaks through to filenames and directories
« Reply #1 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?
 
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Bug report: slash (/) in tags leaks through to filenames and directories
« Reply #2 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.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13931
Re: Bug report: slash (/) in tags leaks through to filenames and directories
« Reply #3 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.
Logged

MattA

  • Recent member
  • *
  • Posts: 5
Re: Bug report: slash (/) in tags leaks through to filenames and directories
« Reply #4 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


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!
Logged
Pages: [1]   Go Up