Please Help Me to Understand (1 Viewer)

wangtastic

Portal Member
November 24, 2006
17
0
36
Hi there,
I've got this plugin installed but I just cannot get my head around how to work it!
I've tried reading the FAQ but it just confused me even more.

This is my set-up.
My TV programs are stored as such: E:\TV\Showname\Season XX\SXXEXX - Episode Title.avi
Nearly all of them on import turn red with parsing errors, and the one's that aren't are nearly all wrong! :(
Take an episode of robot chicken for example it's stored as:
"E:\TV\Robot Chicken\Season 02\S02E06 - 1987.avi" and MPTV reports it as

Parsed Series Name: S02E06
Season ID: 19
Episode: 87

I can see what it's done but I don't know how to fix it?!
I'm new at all this and any/all help would be greatly appreciated!
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Hi there,
    I've got this plugin installed but I just cannot get my head around how to work it!
    I've tried reading the FAQ but it just confused me even more.

    This is my set-up.
    My TV programs are stored as such: E:\TV\Showname\Season XX\SXXEXX - Episode Title.avi
    Nearly all of them on import turn red with parsing errors, and the one's that aren't are nearly all wrong! :(
    Take an episode of robot chicken for example it's stored as:
    "E:\TV\Robot Chicken\Season 02\S02E06 - 1987.avi" and MPTV reports it as

    Parsed Series Name: S02E06
    Season ID: 19
    Episode: 87

    I can see what it's done but I don't know how to fix it?!
    I'm new at all this and any/all help would be greatly appreciated!


    You have an extremly non-standard filename scheme, so one of the expressions is giving you false positives. You need to either re-arrange the order of the existing expressions and move one that would work on your scheme to the top, or disable all the existing ones and create a new one.
     

    wangtastic

    Portal Member
    November 24, 2006
    17
    0
    36
    Is it?
    oh! haha I thought it was pretty standard?!

    So I can create a new expression in MPTV series that meets my naming method? :)

    something like this?
    "<series>\Season <season>\S<season>E<episode> - <title>.<ext>"
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Is it?
    oh! haha I thought it was pretty standard?!

    So I can create a new expression in MPTV series that meets my naming method? :)

    something like this?
    "<series>\Season <season>\S<season>E<episode> - <title>.<ext>"

    Yup, but if you look in the expression exchange thread, I'm pretty sure I modified the default expression for somebody before that had an alike scheme as yours. At least then you have double episode support, which doesn't work in the simple expressions.

    PS: this one should work for you: https://forum.team-mediaportal.com/700319-post21.html
     

    wangtastic

    Portal Member
    November 24, 2006
    17
    0
    36
    Thanks RoChess, I tried this and it works for everything bar seasons 10 of my shows.

    EG "Bleach\Season 10\S10E01 -title.ext"

    any ideas what I can change?
    I did try searching the forum for the relevant parsing expression but I didn't get very far :(

    again thanks a lot :)
    I'll be sure to post up in the stickie when this is working :D

    EDIT sorted it

    I changed (?<season>[0-2]?[1-9]) to (?<season>[0-2]?[0-9])

    :) I'll post in the sticky in abit
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Yeah, not sure why the original expression author did not just use (?<season>\d+), that way it works for Season 0 to 9......999
     

    wangtastic

    Portal Member
    November 24, 2006
    17
    0
    36
    oh cool :) I shall amend then
    i'm still having trouble with episode names that are numbers.

    ie.

    "...\Simpsons\Season 22\S22E20 500 Keys"

    in the shell in MP it lists it above the other episodes right at the top with a zero like:

    0 - 500 Keys
    Episode 1 - blah blah
    Episode 2 - blah blah blah
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    oh cool :) I shall amend then
    i'm still having trouble with episode names that are numbers.

    ie.

    "...\Simpsons\Season 22\S22E20 500 Keys"

    in the shell in MP it lists it above the other episodes right at the top with a zero like:

    0 - 500 Keys
    Episode 1 - blah blah
    Episode 2 - blah blah blah

    It is because you allowed a space to be a possible seperator between first episode and 2nd episode, so '500' is seen as 2nd episode.

    Use:

    Code:
    (?<series>[^\\$]+)(?:(?:\\(?:Season|Staffel|S[eé]ries?)?[ .-]?[0-2]?[0-9])?\\s?(?<season>[0-2]?[1-9])|\\(?:(?:Season|Staffel|S[eé]ries?)[ .-])?(?<season>[0-2]?[1-9])\\[^\\]*?)[ex]?(?<episode>\d+)(?:[.+-]e?(?<episode2>\d+))?(?:[ -]+(?<title>(?![^\\]*?sample)[^$]*?))?\.(?<ext>[^.]*)$

    And you will be fine, I also corrected your \d\d+ usage, as \d+ is enough.
     

    wangtastic

    Portal Member
    November 24, 2006
    17
    0
    36
    Thanks, but for some reason using the above code resulted in all parsing failing again! :(
     

    wangtastic

    Portal Member
    November 24, 2006
    17
    0
    36
    EDIT

    ok so I went back to using my expression and delted the episodes that were registering as 0 then re-added them this time manually linking them to each episode.
    NOTE if two of the same episode appear on the middle of linking list the select only the first one. :)

    Cheers for all your help.
     

    Users who are viewing this thread

    Top Bottom