INTERACT FORUM

Please login or register.

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

Author Topic: Append text to name  (Read 1123 times)

WeeHappyPixie

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 388
  • Gonnae no dae that..
Append text to name
« on: October 25, 2014, 01:23:26 pm »

Hi Guys,

Could someone please let me know how I could append the text (MVC) automatically to the NAME field for any .MK3D files I import into my library.

I have different views setup and one specific for .MK3D files however when I do a view all I get the 2D and 3D versions shown with the same filename. Also, if the NAME field already has the text (MVC) then ignore that file.

Thanks.

John
Logged

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Append text to name
« Reply #1 on: October 25, 2014, 01:27:54 pm »

Add a custom tagging expression for the name field in auto-import:

Code: [Select]
If(IsEqual([File Type], mk3d, 1), Delimit([Name],/ /(MVC/), ), [Name])
IsEqual()
Delimit()
Logged

WeeHappyPixie

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 388
  • Gonnae no dae that..
Re: Append text to name
« Reply #2 on: October 25, 2014, 01:31:44 pm »

Thank You for the quick reply.

John
Logged

WeeHappyPixie

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 388
  • Gonnae no dae that..
Re: Append text to name
« Reply #3 on: October 25, 2014, 01:41:08 pm »

Add a custom tagging expression for the name field in auto-import:

Code: [Select]
If(IsEqual([File Type], mk3d, 1), Delimit([Name],/ /(MVC/), ), [Name])
IsEqual()
Delimit()

I tried this and it did add the (MVC) onto the name field during import however when MC then looks up the movie info and coverart it automatically renames it back to the name of the movie without the (MVC) part.

Any Ideas.

John
Logged

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: Append text to name
« Reply #4 on: October 25, 2014, 01:46:25 pm »

Well firstly, I just realized that the expression does not account for files which already contain (MVC) in the name, so it's not what you would want anyway.
 
Personally, I would customize the view you're using with this expression, rather than renaming the files.
 
Code: [Select]
If(IsEqual([File Type], mk3d, 1), If(!IsEqual(Right([Name], 5), /(MVC/), 1), Delimit([Name],/ /(MVC/), ), [Name]), [Name])
Logged

WeeHappyPixie

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 388
  • Gonnae no dae that..
Re: Append text to name
« Reply #5 on: October 25, 2014, 02:07:21 pm »

Thanks, That is now adding the (MVC) to the filename when they are .mk3d files. Thanks.

I've altered my Theater View view for movies which was set to view by library view Album to your expression If(IsEqual([File Type], mk3d, 1), If(!IsEqual(Right([Name], 5), /(MVC/), 1), Delimit([Name],/ /(MVC/), ), [Name]), [Name])

The problem I have now is that the view shows all the moves in a grid rather than a single line that I can scroll through.

Is this easy to re-implement.

Thanks again for your help, its much appreciated.


John
Logged
Pages: [1]   Go Up