INTERACT FORUM

More => Old Versions => JRiver Media Center 18 for Windows => Topic started by: xplod on November 09, 2012, 11:44:50 am

Title: Filename after Autoimport "("
Post by: xplod 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
Title: Re: Filename after Autoimport "("
Post by: glynor 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.
Title: Re: Filename after Autoimport "("
Post by: xplod on November 09, 2012, 02:53:16 pm
Hallo,
the imported Name is not the same as the filename. See the screenshot.

Xplod

Title: Re: Filename after Autoimport "("
Post by: glynor 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:

(http://glynor.com/img/screenshots/MC18-TagOnImport-FilenameToName.png)

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
Title: Re: Filename after Autoimport "("
Post by: xplod 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 "()".
Title: Re: Filename after Autoimport "("
Post by: MrC 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)?
Title: Re: Filename after Autoimport "("
Post by: xplod on December 28, 2012, 01:53:15 pm
Hallo,

yes the MovieName is always in the front.
Title: Re: Filename after Autoimport "("
Post by: MrC on December 28, 2012, 02:58:17 pm
Easiest to use:

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

or a more flexible:

   Regex([Filename (name)], /#^([^(]+)(\s*\()?#/, 1)
Title: Re: Filename after Autoimport "("
Post by: xplod on December 29, 2012, 02:16:04 am
Thanks,
where can i find the description of regex?
Title: Re: Filename after Autoimport "("
Post by: MrC on December 29, 2012, 04:18:11 am
http://wiki.jriver.com/index.php/Media_Center_expression_language#Regex.28....29:_Regular_expression_pattern_matching_and_capture (http://wiki.jriver.com/index.php/Media_Center_expression_language#Regex.28....29:_Regular_expression_pattern_matching_and_capture)
Title: Re: Filename after Autoimport "("
Post by: xplod 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.

Title: Re: Filename after Autoimport "("
Post by: MrC 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.