INTERACT FORUM

Please login or register.

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

Author Topic: Base Path Expression Request  (Read 1394 times)

locust

  • Citizen of the Universe
  • *****
  • Posts: 699
Base Path Expression Request
« on: October 05, 2012, 11:28:18 am »

Any chance of reviving Markos request??
Quote
http://yabb.jriver.com/interact/index.php?topic=32819.0

I didn't know you couldn't do it before I created my own little system of doing it & it doesn't work?

I created two customs fields

[Drive] - This is where I could enter a desired drive letter for media
[Drive.calc] - if(isempty([Drive]),left([filename],3),[Drive]:\)

The reason I want this is because my media is organised across multiple drives
Take video for instance I have

C:\Users\HOME\Videos
D:\Users\HOME\Videos
E:\Users\HOME\Videos
X:\Users\HOME\Videos
Z:\Users\HOME\Videos

The file naming rules for video are

Directories
Base Path -  [!Drive.calc]Users\Home\Videos\
Rule - if(isempty([Media Sub Type]),\~Error,\[Media Sub Type])if(isequal([Series],unknown,8),,\[Series])if(isequal([Season],unknown,8),,\[Season])if(isequal([Media Sub Type],movie,8),\[Name],)if(isequal([Disc #],unknown,8),,\[Disc #] - )
Filename - if(isequal([Episode],unknown,8),,\[Episode] - )[Name]

When updating tags, it and moving file it means that if I want to move certain media to another drive I would just enter the desired drive letter in my [Drive] field and then use the rename, move & copy tool. It also means that when I am changing tags to many files I can use the rename, move & copy tool on all media to move all files into their appropriate directory, and file name without worrying bout moving media to the wrong drive, because if [Drive] is empty the files will just stay on the same drive.

Thanks for the consideration
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8955
Re: Base Path Expression Request
« Reply #1 on: October 05, 2012, 07:27:16 pm »

They added it some time ago now. The "Base Path" field will accept expressions in all current versions of MC, 17 or 18, and it works very well indeed.

In your scenario, if it's not working, try amending your [drive.calc] expression to read: if(isempty([Drive,0]),left([filename],3),[Drive]:\)

Is that any better for you?

locust

  • Citizen of the Universe
  • *****
  • Posts: 699
Re: Base Path Expression Request
« Reply #2 on: October 05, 2012, 07:40:13 pm »

No it still isn't working for me

Any other ideas?
Logged

locust

  • Citizen of the Universe
  • *****
  • Posts: 699
Re: Base Path Expression Request
« Reply #3 on: October 05, 2012, 07:51:28 pm »

Got it working

For some reason the is empty expression isn't working well

I've changed it to

if(isequal([!Drive],left([filename],1),8),left([filename],1):\,[!Drive]:\)

and it works :)

Thanks Marko
Logged
Pages: [1]   Go Up