Expressions/Rules requests | Page 61

Discussion in 'My TVSeries' started by Inker, April 12, 2007.

  1. hakuna

    hakuna Portal Pro

    Joined:
    October 15, 2004
    Messages:
    395
    Likes Received:
    0
    Occupation:
    Automation engineer
    Location:
    Gothenburg
    Ratings:
    +1 / 0
    Home Country:
    Sweden Sweden
    OK, I found something.
    If I place the files in a subdir \\servern\Film\TV\new it works.
    \\servern\Film\TV and T: are the same place, a dedicated disc for TV series. Seems the parser don't look in the root folder of the disc?



    So, as a workaround I will setup uTorrent to place new downloads in T:\new\, until I sort the new files into the respective folder for each show.

    Niclas
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Marvman
    • Team MediaPortal

    Marvman Retired Team Member

    Joined:
    November 14, 2007
    Messages:
    1,163
    Likes Received:
    365
    Occupation:
    Application Developer
    Location:
    Bavaria
    Ratings:
    +368 / 0
    Home Country:
    Germany Germany
    Show System Specs
    What I encounter when importing my series, that tv series import all in the first step, after that tv series came up with the some files it couldn't parse (no match was found).

    example was: itg-scrubsdb-s06e05.avi and tv series ask me what series it was. I typed scrubs and tv series got it.
    Then I ask myself, why need tv series the series name of this file.

    My folder structure is as following:

    Scrubs
    -----Series 1
    -----Series 6
    ----------- itg-scrubsdb-s06e05.avi

    So tv series just need the top folder and search all files (no matter of sub folder names) for s06e05, the rest can be ignored.

    Hope you understand what I mean
     
  4. Inker
    • Team MediaPortal

    Inker Retired Team Member

    Joined:
    December 6, 2004
    Messages:
    2,055
    Likes Received:
    319
    Ratings:
    +319 / 0
    Yes, I understand what you mean, and its possible with a Regex Expression. I hope someone more versed in regex than me can help you create it.

    We cant just use that by default though, because alot of people have their files in the format "scrubs.s01e06.episodename.avi" so we try to look in the filename with those regex expressions.
     
  5. bugmenot

    bugmenot Portal Pro

    Joined:
    January 13, 2007
    Messages:
    130
    Likes Received:
    2
    Ratings:
    +2 / 0
    regarding to the first post this seems to be the right forum, so i reposted my request:
    sorry if i'm wrong here.
    ____


    hi. i don't get an reg.expression for the following case working:
    Series: 24 ("Tag" means "day")

    Folder structure: root\24\Season 1\
    Filename(s):
    S01E01 - Tag.1.-.00.00-01.00.avi
    S01E02 - Tag.1.-.01.00-02.00.avi


    can someone help me?

    :D
     
  6. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,172
    Likes Received:
    1,301
    Ratings:
    +1,675 / 2
    I can build you a custom expression another day to accept your folder+file structure as-is, but I'm a little wrapped up to do it anyday soon. In the meantime however you could simply strip the scene-tags from your file names to get the same result with the existing expressions.

    In your example if you add a string replacement entry (before matching), that looks for "itg-" and replaces it with nothing, and replace "db-s" with ".s", then "itg-scrubsdb-s06e05.avi" turns into "scrubs.s06e05.avi" which will be matched auto with the default expressions.

    Use that, or be a little bit more patient for the custom expression.

    All the extra digits in the title is throwing off the 2nd+ parsing expressions, and you lack series name in the file for the 1st parsing expression to work.

    "24 S01E01 - Tag.1.-.00.00-01.00.avi" will be picked up fine by the 1st expression. Your problem can be solved by a custom parsing expression, but just like Marvman you will have to wait if you want me to make you one.

    It might be that the following simple expression will work for you:

    <series>\Season <season>\S<season>E<episode> - <title>.<ext>

    but the face that <season> tag is used twice might throw off the simple parsing expression system. I'll get back to ya with custom expression when I find time.
     
  7. bugmenot

    bugmenot Portal Pro

    Joined:
    January 13, 2007
    Messages:
    130
    Likes Received:
    2
    Ratings:
    +2 / 0

    this would be awsome if you can handle it! :):D
     
  8. hakuna

    hakuna Portal Pro

    Joined:
    October 15, 2004
    Messages:
    395
    Likes Received:
    0
    Occupation:
    Automation engineer
    Location:
    Gothenburg
    Ratings:
    +1 / 0
    Home Country:
    Sweden Sweden
    If I place the file in a share that is not on the root of a drive, then it is found, even though it is not in a sub directory.

    Niclas
     
  9. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,172
    Likes Received:
    1,301
    Ratings:
    +1,675 / 2
    Ok, you are lucky that I was bored while on hold on the phone, and it turned out it wasn't much work to modify the existing filename expression, so the following expression works for the both of you:

    ^(?:.*\\)?(?<series>[^\\]+?)\\[^\\]+\\.*(?:?(?<season>\d+)[ _.\-\[\]]*[ex](?<episode>\d+)|(?:\#|\-\s)(?<season>\d+)\.(?<episode>\d+))(?:[ _.+-]+(?:?\k<season>[ _.\-\[\]]*[ex](?<episode2>\d+)|(?:\#|\-\s)\k<season>\.(?<episode2>\d+))|(?:[ _.+-]*[ex+-]+(?<episode2>\d+)))*[ _.\-\[\]]*(?<title>(?![^\\].*?(?<!the)[ .(-]sample[ .)-]).*?)\.(?<ext>[^.]*)$


    It looks for:

    "Series Name"\(ignores this folder name completly)\(ignores any prefixes)S(season)E(episode) (it will use anything after it as title, but since TheTVdB is used for this, it is only used when thetvdb.com is down).​

    If the term "sample" is present in the title it will be skipped, unless it is "the sample" (as per a Chuck episode)

    The best position in the parsing expression list would be the 2nd one

    Enjoy.
     
    • Like Like x 1
  10. bugmenot

    bugmenot Portal Pro

    Joined:
    January 13, 2007
    Messages:
    130
    Likes Received:
    2
    Ratings:
    +2 / 0
    thank you very much RoChess this expression works perfect!

    it would be great if you can help me out with another.
    I now think it is better if i choose the series i want to include all by hand and not include a full harddisc drive like above.

    This time i want to import the following structure:

    for example: S:\24\ for importing S:\24\Season 1\S01E02 - Tag.1.-.01.00-02.00.avi

    when using the standard expressions (and the new one you just made) i get S1 for the Series Name, which is not correct :(

    hope you have the time to help me again.. :D
     
  11. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,172
    Likes Received:
    1,301
    Ratings:
    +1,675 / 2
    So all you want to provide to MP-TVSeries is "Season 1\S01E02 - Tag.1.-.01.00-02.00.avi", and it has to use superior Artificial Intelligence to determine that this is the TV-Show "24"????? Get back to me in 25 years and I'm sure that will be no problem.

    Until then, create "S:\TV Shows", configure that as import folder, and put "24\Season 1\S01E02 - Tag.1.-.01.00-02.00.avi" inside of it, which will work with the expression already provided to you.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!