INTERACT FORUM

Please login or register.

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

Author Topic: "Rename, Move, & Copy Files" filename rule bug?  (Read 817 times)

james.smth

  • Recent member
  • *
  • Posts: 7
"Rename, Move, & Copy Files" filename rule bug?
« on: September 03, 2019, 08:18:05 am »

In one of my views for video files i have an expression column with the following expression:
If(IsEmpty([Series]), [Name], [Series] S[Season]E[Episode] [Name])

However, when i paste this expression into 'filename rule' area of "Rename, Move, & Copy Files" window the output is the reverse of what it should be so i have to change the expression like this:
If(IsEmpty([Series]), [Series] S[Season]E[Episode] [Name], [Name])
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: "Rename, Move, & Copy Files" filename rule bug?
« Reply #1 on: September 03, 2019, 01:11:43 pm »

I can't test this at the moment, but I have a suggestion:

Make a custom field in the MC Library that holds this information.  Call it something like "SeriesName", or something else that makes sense to you.  As a calculated data field, it should act just like your expression column.

Except that now you can use it by name in the RM&C dialogs!  That should sort out the inconsistency I think.

Good luck.

Brian.
Logged

james.smth

  • Recent member
  • *
  • Posts: 7
Re: "Rename, Move, & Copy Files" filename rule bug?
« Reply #2 on: September 03, 2019, 01:59:01 pm »

I can't test this at the moment, but I have a suggestion:

Make a custom field in the MC Library that holds this information.  Call it something like "SeriesName", or something else that makes sense to you.  As a calculated data field, it should act just like your expression column.

Except that now you can use it by name in the RM&C dialogs!  That should sort out the inconsistency I think.

Good luck.

Brian.

Your suggestion worked, thank you.
Logged

james.smth

  • Recent member
  • *
  • Posts: 7
Re: "Rename, Move, & Copy Files" filename rule bug?
« Reply #3 on: September 12, 2019, 06:56:44 am »

If i change this:
Code: [Select]
If(IsEmpty([Series]), [Name], [Series] S[Season]E[Episode] [Name])to this:
Code: [Select]
If(IsEmpty([Series]), [Name] ([Year]), [Series] S[Season]E[Episode] [Name])the output that should be Dark Phoenix (2019), for example, instead will become 1, SE Dark Phoenix)

Creating a custom library field doesn't help in this case. Something is not working properly.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: "Rename, Move, & Copy Files" filename rule bug?
« Reply #4 on: September 12, 2019, 08:16:46 am »

I'm not sure where that comma is coming from in "1, SE" .  What is the [Series] tag for the file in question?

I would use an expression column and show both the expression and the values of ALL of the tags in question, all side by side, so you can see what's going on.

Good luck.

Brian.
Logged

james.smth

  • Recent member
  • *
  • Posts: 7
Re: "Rename, Move, & Copy Files" filename rule bug?
« Reply #5 on: September 12, 2019, 08:31:34 am »

It's a movie, so Series should be empty. I double-checked in the tag window and it appears to be empty.
So if i use this expression:
Code: [Select]
If(IsEmpty([Series]), [Name] ([Year]), [Series] S[Season]E[Episode] [Name])i get this: 1, SE Dark Phoenix)

And if i use this expression:
Code: [Select]
If(IsEmpty([Series]), [Name], [Series] S[Season]E[Episode] [Name])i get this: Dark Phoenix

So the question is why do i get 1, SE Dark Phoenix) instead of Dark Phoenix (2019). For some reason adding ([Year]) throws a wrench into it. The value of tag "Year" for this particular movie is "2019".
Logged

james.smth

  • Recent member
  • *
  • Posts: 7
Re: "Rename, Move, & Copy Files" filename rule bug?
« Reply #6 on: September 12, 2019, 08:41:27 am »

If i use this expression:
Code: [Select]
If(IsEmpty([Series]), [Name] [Year], [Series] S[Season]E[Episode] [Name])it works fine

So it appears that adding ( or ) breaks it.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: "Rename, Move, & Copy Files" filename rule bug?
« Reply #7 on: September 12, 2019, 08:44:17 am »

So it appears that adding ( or ) breaks it.

You need to escape the parenthesis with a slash (/).
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up