INTERACT FORUM

Please login or register.

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

Author Topic: Filename after Autoimport "("  (Read 1773 times)

xplod

  • Recent member
  • *
  • Posts: 19
Filename after Autoimport "("
« on: November 09, 2012, 11:44:50 am »

Hallo,
the imported filename is different to the filename on the drive.

I.e. >(K)ein bisschen schwanger.mpg< will be imported as "(".

In MediaCenter 16 I don't have this issue. It seems that MediaCenter higher as 16 have this issue.

Xplod
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Filename after Autoimport "("
« Reply #1 on: November 09, 2012, 02:00:44 pm »

Try to explain yourself better, because this doesn't make a whole bunch of sense.

Between MC16 and MC18, some of the expression processing got more strict, which can cause expressions that had syntax errors (but which used to work correctly) to now fail.  Maybe this is related to that?  Not sure... But explain in more detail, and maybe post a screenshot or two as illustrations.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

xplod

  • Recent member
  • *
  • Posts: 19
Re: Filename after Autoimport "("
« Reply #2 on: November 09, 2012, 02:53:16 pm »

Hallo,
the imported Name is not the same as the filename. See the screenshot.

Xplod

Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Filename after Autoimport "("
« Reply #3 on: November 09, 2012, 04:54:06 pm »

Yep.  That's because of an (otherwise tremendous) new feature called Carnac.  It parses the incoming filenames (for some file types) to try to auto-determine metadata about them, and fill the different fields automatically.  Then, if it can figure out enough information, it will do an automated lookup on tmdb or thetvdb.org.  In your case, it has parsed away Sisi (not sure where), 2009 (Year), ZFD (not sure where), and 17-12-2009 (Date), and it dumps the "rest" in the [Name] field.

Search the forums for Carnac, and you'll find all sorts of info.  It was added last year to MC17.  It completely automatically parses many common filenaming patterns and will automatically look up additional metadata online.  It's pretty darn neat.

It failed with your filenaming scheme.  Perhaps Matt can take a look at this, as they've made numerous improvements to it to handle common naming schemes.  He'll need you to explain your naming pattern in more detail, though.

However, along with Carnac, they added another new feature to MC which allows you to define your OWN parsing rules, which I call Tag On Import.  Under the Auto-Import settings, you can set your own rules with as much complexity as you want, on a per-watched-folder basis.

So, for example, if you just want it to always set your [Name] field to match the filename exactly (the old way) you can add a rule like this:



But, you actually have much more power to do advanced parsing using expressions and multiple rules.  I covered some of this in this old thread:
http://yabb.jriver.com/interact/index.php?topic=68462.0
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

xplod

  • Recent member
  • *
  • Posts: 19
Re: Filename after Autoimport "("
« Reply #4 on: December 28, 2012, 05:35:04 am »

Hallo,

thanks for the info. It is now working for me.

Just one more question.

I have a filename like this

MovieName (Chanelname)(26-12-2012)(13_01).mpg

I wourld like to only to get the [Name] =  "MovieName" and dump all the things wich are in "()".
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Filename after Autoimport "("
« Reply #5 on: December 28, 2012, 01:24:53 pm »

Is MovieName always the first component (either before an opening paren, or there will be no parens)?
Logged
The opinions I express represent my own folly.

xplod

  • Recent member
  • *
  • Posts: 19
Re: Filename after Autoimport "("
« Reply #6 on: December 28, 2012, 01:53:15 pm »

Hallo,

yes the MovieName is always in the front.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Filename after Autoimport "("
« Reply #7 on: December 28, 2012, 02:58:17 pm »

Easiest to use:

   ListItem([Filename (name)], 0, / ()

or a more flexible:

   Regex([Filename (name)], /#^([^(]+)(\s*\()?#/, 1)
Logged
The opinions I express represent my own folly.

xplod

  • Recent member
  • *
  • Posts: 19
Re: Filename after Autoimport "("
« Reply #8 on: December 29, 2012, 02:16:04 am »

Thanks,
where can i find the description of regex?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Logged
The opinions I express represent my own folly.

xplod

  • Recent member
  • *
  • Posts: 19
Re: Filename after Autoimport "("
« Reply #10 on: December 29, 2012, 06:27:11 am »

Thanks again!!

if there is no blank in the filename

   ListItem([Filename (name)], 0, / ()
   Regex([Filename (name)], /#^([^(]+)(\s*\()?#/, 1)

are not working.

Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Filename after Autoimport "("
« Reply #11 on: December 29, 2012, 12:55:59 pm »

The regex() works (and that's why I suggested it as more flexible - see attached).

The listitem() requires removing the "/ " if the filename does not have space after the movie name before the opening paren.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up