Parsing expressions not loaded correctly (1 Viewer)

tki

Portal Member
April 10, 2008
12
0
Home Country
New Zealand New Zealand
Hi - not sure where/who to ask, so here it is:
I'm running MP RC1, and MP-TV Series 2.0.0.0 and I'll start by givving you the log for when I try the parsing test:
28/04/2008 9:24:31 p.m. - Compiling Regex...
28/04/2008 9:24:31 p.m. - Compiled Regex sucessfuly, 8 valid Expressions found
28/04/2008 9:24:31 p.m. - Parsing test beginning, getting all files...
28/04/2008 9:24:31 p.m. - Starting Local Parsing operation - Async: yes
28/04/2008 9:24:31 p.m. - Searching for all supported videos files within T:\TV and it's subfolders.
28/04/2008 9:24:31 p.m. - Found 910 supported video files.
28/04/2008 9:24:31 p.m. - Local Filename Parsing starting, processing 910 files...
28/04/2008 9:24:32 p.m. - ParseLocal finished..
28/04/2008 9:24:32 p.m. - Finished Parsing operation - Async: True
28/04/2008 9:24:32 p.m. - Parsing test completed
28/04/2008 9:24:32 p.m. - Parsing failed for Weeds\Season 1\1 - You Can't Miss the Bear.avi
28/04/2008 9:24:32 p.m. - Parsing failed for Weeds\Season 1\10 - The Godmother.avi
28/04/2008 9:24:32 p.m. - Parsing failed for Weeds\Season 1\2 - Free Goat.avi
28/04/2008 9:24:32 p.m. - Parsing failed for Weeds\Season 1\3 - Good Sh#t Lollipop.avi
...

failing for everything WHICH IS NOT THE PROBLEM!!!!

The problem is "Compiled Regex sucessfuly, 8 valid Expressions found"

I assume that this is the 8 default expressions that I have disabled (since they did not match my naming). I have also added a simple expression:
<series>\Season <season>\<episode> - <title>.<ext>
which as far as I can see sill work fine, if it gets used.

What do I do? I can't find anything else I can tweak to make it update the expressions it uses. Do I need to completely reinstall mediaportal or is this maybe a known issue with a known fix?? Furthermore does anybody want me to send any logs or anything in case it can help debugging for development.

Thanks,
Tony
 

ScoopD

Portal Member
April 24, 2007
37
4
Melbourne
Home Country
Hey Tony, Don't know if it is still the case, but when I first started using this plugin I found that the functionality would run through each of the expressions till it got one that worked then moved on to the next file. What I did was insert my custom expression at the top of the list so that it was used first.

Worth a try?

Scoop
 

tki

Portal Member
April 10, 2008
12
0
Home Country
New Zealand New Zealand
Cheers Scoop - Unfortunately I have already tried that, and even deleting all the other expressions, but it still compiles 8 expressions.
 

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    Hey tki, I have made a few changes to the Expressions table in the latest SVN .

    Im not sure if it will fix your problem but it might (you got nothing to loose), after upgrading click the reset button to get the default list of expressions. Then add your simple expression above. It should also now recognize if you disable an expression.

    Also note you have to be careful in what order you put the expressions in otherwise it will only partially recognize when parsing, take this set for an example:

    House\Season 3\04 - Lines in the Sand.avi
    Kyle XY\Season 1\s01e01.avi
    Kyle XY\Season 1\s01e02-test.avi
    Kyle XY\Season 1\s01e03 - test.avi

    To correctly parse these using Simple Expressions alone, you will need ensure the order is defined like so:
    <series>\Season <season>\s<season>e<episode> - <title>.<ext>
    <series>\Season <season>\s<season>e<episode>-<title>.<ext>
    <series>\Season <season>\s<season>e<episode>.<ext>
    <series>\Season <season>\<episode> - <title>.<ext>

    I hope this help you.

    Note: in the latest svn I have disable the Up/Dn buttons in expressions because it wasn't working anyway. Something happened from Release v2.0.0.

    Damien
     

    tki

    Portal Member
    April 10, 2008
    12
    0
    Home Country
    New Zealand New Zealand
    found a solution

    OK - I got it going using a simple expression or two. In the end I found it seems to be badly out of sync in terms of updating the expressions it uses. Sometimes it works sometimes it doesn't, but I think the key thing I did differently to get it going was to add in a couple of extra expressions, after my intended "good" expression. Seems like the rules must be added in an on-exit event or something(perhaps on create new line), which isn't necessarily triggered every time. Have no found that so long as I add an extra rule or two (I just used something like hello<season>hello that won't match anything) it works just fine. I guess I should probably download the source and see if I can figure out the problem, but for now I just want to let people know that a) this quirk exists and b) you can get around it fairly easily

    Anyway, awesome plugin I really do love it. The functionality is awesome - just needs a bit of a tweak here and there in the config.

    Thanks Damien - will check that out soon - although apparently I'm off to china for a while, so it may not be for a few weeks now:D
     

    Users who are viewing this thread


    Write your reply...
    Top Bottom