INTERACT FORUM

Please login or register.

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

Author Topic: Backslash replacement suggestion  (Read 1839 times)

AUser

  • Junior Woodchuck
  • **
  • Posts: 62
Backslash replacement suggestion
« on: July 21, 2014, 11:11:36 am »

Not sure when this broke as I haven't had to do it for a while

I have a custom calculated field that creates a path from certain fields in the selected file(s)
I used to use this in the 'Rename, move and copy files' dialog to set the destination directory

The field [DefLocation] would resemble
Audiobooks\some author\some series\a book name\ 
Music\some artist\1980 some album\

The field is still correct in the tag editor, but now the backslashes are being replaced by the underline symbol
Audiobooks_some author_some series_a book name_
Music_some artist_1980 some album_

This is not a helpful change and has destroyed my semi-automation
The presets are not half as useful, as you can only pick one preset at a time
Can it be put back as it was plese
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42344
  • Shoes gone again!
Backslash replacement suggestion
« Reply #1 on: July 21, 2014, 11:20:56 am »

Not sure when this broke as I haven't had to do it for a while

I have a custom calculated field that creates a path from certain fields in the selected file(s)
I used to use this in the 'Rename, move and copy files' dialog to set the destination directory

The field [DefLocation] would resemble
Audiobooks\some author\some series\a book name\ 
Music\some artist\1980 some album\

The field is still correct in the tag editor, but now the backslashes are being replaced by the underline symbol
Audiobooks_some author_some series_a book name_
Music_some artist_1980 some album_

This is not a helpful change and has destroyed my semi-automation
The presets are not half as useful, as you can only pick one preset at a time
Can it be put back as it was plese

The backslashes are replaced by underlines.  This is because it's assumed that path variables won't intentionally be used.

There's no work around.  Sorry.
Logged
Matt Ashland, JRiver Media Center

AUser

  • Junior Woodchuck
  • **
  • Posts: 62
Backslash replacement suggestion
« Reply #2 on: July 21, 2014, 11:24:20 am »

You're making me sad now

Couldn't there be something simple like a checkbox in the field definition 'allow backslashes' or 'replace illegal filename characters with an underline' ?
Logged

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Backslash replacement suggestion
« Reply #3 on: July 21, 2014, 12:20:22 pm »

Could you describe your "semi-automation" process?
I'm not sure why you couldn't just use this as a rename preset.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42344
  • Shoes gone again!
Re: Backslash replacement suggestion
« Reply #4 on: July 21, 2014, 12:22:29 pm »

Next build:
NEW: Replacing slashes in expressions is optional in Rename, Move, & Copy Files.
Logged
Matt Ashland, JRiver Media Center

AUser

  • Junior Woodchuck
  • **
  • Posts: 62
Re: Backslash replacement suggestion
« Reply #5 on: July 21, 2014, 01:56:14 pm »

@Matt
Thanks a lot

@6233638
Basically, I use a this for all my audio and different (non-music) things need different layouts and locations
eg
audiobooks can have authors, series, sub-series, book order
podcasts have yet a different layout
etc, etc
Even the filenames are different when you have to name a book track in relation to other books around it eg [series#][subseries#][book#][title][track#]
It's very confusing on a mobile device to just have a list of track names when you finish one book and want to pick the next in order - even more so when you don't actually know what the next name is, just that you finished book 3 and want book 4

So....... you could have a different preset for each type of audio - but that means that for each rename operation you could only do 1 type and have to remember to change the preset each time
..or you can use a calculated field that builds that path for you - now you can rename all the types at once and don't have to change keep changing the preset
(same for filename) - job's sorted and you never have to mess about again  :)
Logged

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Backslash replacement suggestion
« Reply #6 on: July 21, 2014, 02:19:20 pm »

You can create a rule which applies different paths based on the Media Sub Type. (or any other value)
For example:
Code: [Select]
If(IsEqual([Media Sub Type], Audiobook, 1), \Audiobooks\[Author]\[Series]\[Book #] - [Name],
If(IsEqual([Media Sub Type], Music, 1), \Music\[Album Artist (auto)]\Delimit([Year],/]/ -/ ,/[)[Album],
If(IsEqual([Media Sub Type], Movie, 1), \Movies\[Name],
If(IsEqual([Media Sub Type], TV Show, 1), \TV\[Series]\Season [Season],
\Misc\))))

Though it seems that this has been fixed for you now anyway.
 
http://wiki.jriver.com/index.php/Expression_Language
Logged

AUser

  • Junior Woodchuck
  • **
  • Posts: 62
Re: Backslash replacement suggestion
« Reply #7 on: July 21, 2014, 02:27:42 pm »

That's the kind of thing I use, but as a calculated field
So far, having it as a calculated field has been more useful, as you can...
use it in multiple places
resistant to accidental typing modification
is in the database so it stays around over reinstalls or moving to another pc etc
Logged

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Backslash replacement suggestion
« Reply #8 on: July 21, 2014, 02:30:20 pm »

I understand that, but I'm just pointing out that you can still use expressions like this as presets in the rename tool.
Saved presets should be saved in the library as well.
Logged
Pages: [1]   Go Up