Expressions/Rules requests (15 Viewers)

Nefarian

Portal Member
June 13, 2015
17
0
Home Country
Australia Australia
Hey, hoping someone can help me here please. I do not really understand Regex at all! Here's a list of all the expressions I am using now:
Code:
^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?:e7)?.*?(?:(?:[Ss]\d{1,2}[Ee]p?(?<episode>\d{1,3})(?:\-[Ee]?(?<episode2>\d{1,3}))?)|\d{1,2}[Xx](?<episode>\d{1,3})).*\.(?<ext>\w{3,4})$
^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?:e7)?.*?(?:[Ee]p?(?<episode>\d{1,2})(?:\-[Ee]?(?<episode2>\d{1,2}))?).*\.(?<ext>\w{3,4})$
^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?<episode>\d{2})(?:\-(?<episode2>\d{2}))?[^\d].*\.(?<ext>\w{3,4})$
^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}(?:e7)?.*(?:\d{1,2}(?<episode>\d{2})(?:\-(?<episode2>\d{2}))?).*\.(?<ext>\w{3,4})$
^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}.*?(?:(?i:part|episode)\.?\s?(?<episode>\d\d?)(?:\-(?<episode2>\d\d?))?).*\.(?<ext>\w{3,4})$
^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}.*?(?<episode>(\d\d))(?:\-(?<episode2>(\d\d)))?.*?\.(?<ext>\w{3,4})$
^(?<series>[^\\$]+?)\\(?:[^\\$]+?)?(?:[Ss](?i:eason\s?)?(?<season>\d\d?).*\\)(?:EXTRAS\\){0}.*?(?<episode>(\d)).*?\.(?<ext>\w{3,4})$

The odd thing is it picks up Law & Order but does not pick up Law & Order Los Angeles or Law & Order True Crime.
 

bta489

Portal Pro
March 17, 2013
190
107
Home Country
Germany Germany
Hard to tell why it is not working if it is unclear what filenames these are supposed to match. Some samples that don't work (and maybe some that do work) would be helpful here (preferably the full path).

In absence of these, I would hazard a guess that it is more likely that some other factor is at play here than 'just' the particular name of the tv-show. These patterns seem to be suitable for a file structure of a folder per tv show (its name is used for matching) containing folders for the individual seasons, which finally contain the video-files themselves (with at least the episode number somewhere in the name). If the problematic files are organized differently, that would certainly explain it.
 

Kickaha

MP Donator
  • Premium Supporter
  • June 17, 2009
    20
    0
    NRW
    Home Country
    Germany Germany
    Hello!
    First, my english ist not goog, i know. Sorry about that.
    I have a problem and need a "little" Help: TV-Series with more than 99 Episodes in a Season.. I search the forum and found a post in 2010, but the solution doesn work anymore with the latest version of TV-Series. First I have reset the parsing expressions.. Fail , then i copy and paste the expression found in this form :
    (?<series>[^\\])\\S(?<season>\d{1,2})E(?<episode>\d{1,3}) - (?<title>\w).(?<ext>\w{1,3})
    an put it on the top of the List.. fail..
    only thing changed ist the error message in TV-Series, first message was Episode S01E not found. Now the Message ist Staffel 1 not found.. and Satffel 2, Staffel 3... and so on. It seems, the episodes 100 till 120 are not identified as an Episode rather als a Series?
    The Files are named as S01E01 <Titel> ... S01E120 <Titel>. The directoy name ist the Series name.

    Greetings from Germany
     

    bta489

    Portal Pro
    March 17, 2013
    190
    107
    Home Country
    Germany Germany
    I'm not aware of any episode count limitation in MP-TV series. My guess is there is some other problem going on.

    First, I'd suggest a correction to the expression:
    Code:
    (?<series>[^\\])\\S(?<season>\d{1,2})E(?<episode>\d{1,3})\s*(?<title>.+)\.(?<ext>\w{1,4})$
    for filenames like "My Series Name\S01E101 My Random Episode Title.mp4"

    Then make sure your season and episode numbers as well as series name match those on thetvdb.com as MPTVSeries uses them exclusively for matching.

    What error messages do you get exactly? It sounds more like it is failing to match the files to thetvdb than parsing the local filenames.
     

    Kickaha

    MP Donator
  • Premium Supporter
  • June 17, 2009
    20
    0
    NRW
    Home Country
    Germany Germany
    First: Thank You for your answer.
    Yes, it seems there is a limit of 99 Episodes. wen i lock in the setup of MP-TVseries the episodes 100-120 are light grey. Episodes 1-99 are found and matching. Starting Medialportal/TV-Series after a few second a Windows pops up: local series S01E with al list of numbered options/ suggested Series (no 1 and 2: skip and skip/never ask again .
    Next Windows same, only the series name schange to "Staffel 10" an then Staffel 5, Staffel 11, Staffel 13 (all Numbers between 1 and 13. I think, the plugin ist unable to work with the Episodes 100-120.

    Your correction didnot sove the problem, sorry. runnig an import adds only 5 new, empty series to the list, named 0, 1, 2, 3, 4 , 5.

    1.jpg
    2.jpg
     

    Kickaha

    MP Donator
  • Premium Supporter
  • June 17, 2009
    20
    0
    NRW
    Home Country
    Germany Germany
    + added. "Sideeffekts" are gone, Problem with 99+ not solved: Data from thetvdb are found, but no match with the existing file. Its correct, that there are no additional data, in tvdb are none in german avaible. Only Air Date. Editing the german translation is in progress. Seriesname : Neighbours
    Zwischenablagebild.jpg
     

    bta489

    Portal Pro
    March 17, 2013
    190
    107
    Home Country
    Germany Germany
    I could not reproduce the issue in my virtual machine testbed. Season 1 imported completely, no greyed out files, all visible within the GUI:

    MP_TVSeries_100+.pngMP_TVSeries_100+_GUI.png

    From your screenshot it appears that the greyed out files don't have a file attached to them (compare with my screenshot, above "Episode Name" there should be "Local File Name").

    I used the RegEx from before (as corrected by Pablik):
    Code:
    (?<series>[^\\]+)\\S(?<season>\d{1,2})E(?<episode>\d{1,3})\s*(?<title>.+)\.(?<ext>\w{1,4})$
     

    Users who are viewing this thread

    Top Bottom