Expressions/Rules requests (6 Viewers)

Chubler

Portal Member
July 14, 2009
46
25
Home Country
Australia Australia
I cannot get the Parsing search engine to work...

I have a folder called "TV Series" inside I have my favorite TV Series...

...snip...

How do I need to set up the Parsing Code in order to work for both cases?
- Alex -

Alex,

It's a little hard to be sure what your after as the formatting of your post (putting [noparse]
Code:
 and
[/noparse] tags around this sort of stuff can help)

If your trying to match stuff like:

Supernatrual\Season 1\01x01 - title.ext
Band of Brothers\Season 1\01x02 - title.ext​

The expression I posted in Expressions Rules Exchange (Post #25) should cover these.
 

tempalb81

Portal Member
January 15, 2011
7
0
Home Country
Italy Italy
Hello,

I have all the seriies with this format:

Scrubs\stagione 1\1-11[Scrubs] title.ext

sometimes

Scrubs\stagione 1\1-11+12[Scrubs] title.ext

thanks

PS: i've tried very hard, but it's too difficult :sorry:
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Hello,

    I have all the seriies with this format:

    Scrubs\stagione 1\1-11[Scrubs] title.ext

    sometimes

    Scrubs\stagione 1\1-11+12[Scrubs] title.ext

    thanks

    PS: i've tried very hard, but it's too difficult :sorry:

    Try:

    #1 = simple = <series>\stagione <season>\<season>-<episode>[<series>] <title>.<ext>
    #2 = simple = <series>\stagione <season>\<season>-<episode>+<episode2>[<series>] <title>.<ext>

    Be sure to put them at the top, or they might never be used as false positives could be generated by other expressions otherwise. I can't remember is <episode2> is supported by the simple expression method, so if it fails let me know and i will create you a single RegExp entry.
     

    tempalb81

    Portal Member
    January 15, 2011
    7
    0
    Home Country
    Italy Italy
    Try:

    #1 = simple = <series>\stagione <season>\<season>-<episode>[<series>] <title>.<ext>
    #2 = simple = <series>\stagione <season>\<season>-<episode>+<episode2>[<series>] <title>.<ext>

    Be sure to put them at the top, or they might never be used as false positives could be generated by other expressions otherwise. I can't remember is <episode2> is supported by the simple expression method, so if it fails let me know and i will create you a single RegExp entry.

    Thank you for the very (very very) fast reply :D

    I've just put these simple expression before wrote here, but i 'don't know because they don't work :confused:

    All my series are like, from the unit folder, like:

    E:\serie TV\The Shiled\stagione 6\6-05[The Shield] title.avi

    In the import paths, i put in E:\serie TV
    I disabled all string replacements because i clean the filenames by myself (with lupas renamer).
    I disabled all other parsing expression.

    the program return, for each file:

    compiling parsing expression
    cannot use the following expression: analisi di "(?<Parsed_Name>[^\\]*?)\\stagione (?<SeasonIndex>[^\\]*?)\\(?<SeasonIndex>[^\\]*?)-(?<EpisodeIndex>[^\\]*?)[(?<Parsed_Name>[^\\]*?)] (?<LocalEpisodeName>[^\\]*?)\.(?<ext>[^\\]*)" - Troppe parentesi di chiusura. in corso...
    Finished compiling Parsing expression, found 0 valid expressions
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Ok, so you needed a full RegExp then, so add:

    #1 = regexp = ^(?:.*\\)?(?<season>\d+)\-(?<episode>\d+)(?:[+]+(?<episode2>\d+))?\[(?<series>.+)\][ _.\-]*(?<title>(?![^\\].*?(?<!the)[ .(-]sample[ .)-]).*?)\.(?<ext>[^\.\\]*)$

    Enjoy
     

    tempalb81

    Portal Member
    January 15, 2011
    7
    0
    Home Country
    Italy Italy
    Ok, so you needed a full RegExp then, so add:

    #1 = regexp = ^(?:.*\\)?(?<season>\d+)\-(?<episode>\d+)(?:[+]+(?<episode2>\d+))?\[(?<series>.+)\][ _.\-]*(?<title>(?![^\\].*?(?<!the)[ .(-]sample[ .)-]).*?)\.(?<ext>[^\.\\]*)$

    Enjoy

    sorry, don't work :sorry:

    i suppose that's more easy renames the files in another format :(
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    sorry, don't work :sorry:

    I can only test in Expresso, but based on your folder+file examples it should work. So did u perhaps not copy and paste the expression properly? Or forget to switch it to a 'RegExp' entry?

    Otherwise switch MP-TVSeries into debug mode inside configuration and provide the log files when you try to parse. The log files in debug mode will reveal more on what exactly is failing then.
     

    tempalb81

    Portal Member
    January 15, 2011
    7
    0
    Home Country
    Italy Italy
    sorry, don't work :sorry:

    I can only test in Expresso, but based on your folder+file examples it should work. So did u perhaps not copy and paste the expression properly? Or forget to switch it to a 'RegExp' entry?

    Otherwise switch MP-TVSeries into debug mode inside configuration and provide the log files when you try to parse. The log files in debug mode will reveal more on what exactly is failing then.

    the string is pasted correctly

    i don't be able to found the debug mode
    i had found the guide DevelopersGuide - mptvseries - Developer's Guide - Project Hosting on Google Code "debugging in media portal
    but i don't understand "Right Click on the MediaPortal project" : where ?

    thank you for the patience
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    That guide is meant for developers, you don't need to read it.

    What he meant was:
    Open MP-TVSeries configuration
    Go to general tab and you see a dropdown box named Log that is set to Normal.
    Change that to Debug
     

    tempalb81

    Portal Member
    January 15, 2011
    7
    0
    Home Country
    Italy Italy
    otherwise switch MP-TVSeries into debug mode inside configuration and provide the log files when you try to parse. The log files in debug mode will reveal more on what exactly is failing then.

    In the import tab, there aren't any error message:

    Compiling parsing expression
    found 1 valid expression
    Compiling replacement expression
    found 0 valid expression
    starting parsing test
    found 1270 supported video files
    starting local filename parsing
    parsing test completed

    parsing failed for........(for any file)

    PS:how export the log files?

    However, the default parsiing expression succesfully work with file named <series> - <season>x<episode> - <title>.<ext>
    Probabily, i spend less time (my and yours time) to rename all series files (with lupas renamer or another program it isn't too difficult)

    Thank you :D

    PPS: A LAST DUBT!

    it's possible that the expression don't work because i put the series name into "brakets" ?

    season-episode[series] title.exte

    there is an error in log text: "too many closing parenthesis"

    YESSSS!!!!
    the import script don't like parenthesis () or brakets [] in the filename :mad:

    i must rename all file name changing the brakets with another simbol :mad:

    You must put this error in the main page for all other user :D
     

    Users who are viewing this thread

    Top Bottom