Expressions/Rules requests (5 Viewers)

Inker

Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Hello everyone,

    I'm new to media portal and MP-TV plugin. I am looking for some help with importing TV shows that are recorded by Windows media center 2005 to a HTPC on my home LAN running Media Portal. I installed the TP Plugin however when I setup the import path, the TV shows don't parse. I'm not sure if the way they are saved by MCE if there is enough info in the title to write an expression (not that I am smart enough to write one). Here is an example of the file name:
    Futurama_COMEDYP_01_09_2010_01_00_04.dvr-ms

    Is there a way to write a rule so that this get's imported? Is so will it changed the name of the file? Lastly if it does change the name of the file will windows media center still recognize it?

    Thanks in advance
    Steve

    Unfortunatly not possible currently.
    The problem is two fold:
    - parsing by airdate doesn't work properly, which would be needed to parse the filename, and even if it did its only really meant for daily shows as it will only work for the original airdate, record a rerun or something on a diff date youre out of luck.
    - as far as I know MediaCenter stores episode info inside the dvr-ms (proprietary) format, and I would assume inside some sort of database. If we had a parser for either of the two (preferably the dvr-ms file) we could import it. Such parsers are planned for future releases.

    You can of course manually import the file and just select the series/episode manually in the importer.
     

    keith2045

    Portal Pro
    February 16, 2006
    264
    2
    Missouri
    Home Country
    United States of America United States of America
    I'm having issues with my DVD folders. I've got my shows stored like this

    X:\TVShows\Simpsons\Simpsons - 01x01 - Title\Video_TS\

    By default it finds VIDEO_TS.IFO and VTS_01_0.IFO but i only need it to find the first one. Any suggestions?

    Presuming X:\TVShows is your import path, try a simple expression such as:

    <series> - <season>x<episode> - <title>\VIDEO_TS\VIDEO_TS.IFO​

    And disable the others if they are generating false positives for you.

    Anyone have any suggestions for this? I added this and only this reg expression and i still get 2 copies that show up.

    Thanks
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    how do i handle S13E101 ?
    I.E, I need a regex to handle N digits for Episode.

    cant find a complete regex taht does this

    Thanks

    B

    The new default one already does this. Use the 'reset' option to get the new default ones setup after you updated to the latest version.
     

    Keneo

    Portal Pro
    August 28, 2009
    81
    16
    Home Country
    Canada Canada
    Is there a tutorial on using the parsing expressions tab? On regular expressions?
    We have access to use these facilities but there doesn't seem to even be basic "how to" documentation.
    It seems there should at the very least be a glossary explaining what the various symbols accomplish.

    If there is nothing out there, then I have some questions...

    1. what are we trying to accomplish by adding an expression to the parsing tab?
    Are we trying to match file names? when we insert <series> are we telling the engine that is where it will find the name of the series?

    1. What are these (and other symbols) for?
    ?
    ^
    *
    \\
    \
    !
    |
    []
    $
    ()
    :
    {}
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Is there a tutorial on using the parsing expressions tab? On regular expressions?
    We have access to use these facilities but there doesn't seem to even be basic "how to" documentation.
    It seems there should at the very least be a glossary explaining what the various symbols accomplish.

    There are a gazillion guides on the internet regarding regular expressions, but if you have to ask what they do, it is usually better to not touch them as they can bring you to the edge of sanity.

    One of the many tutorials Google finds: Regular Expressions - a Simple User Guide

    Program I use to test/build them: Expresso Regular Expression Tool

    Enjoy
     

    Keneo

    Portal Pro
    August 28, 2009
    81
    16
    Home Country
    Canada Canada
    There are a gazillion guides on the internet regarding regular expressions, but if you have to ask what they do, it is usually better to not touch them as they can bring you to the edge of sanity.

    One of the many tutorials Google finds: Regular Expressions - a Simple User Guide

    Program I use to test/build them: Expresso Regular Expression Tool
    Enjoy

    Well thank you for the link. It was very helpful.

    But more questions...

    What is the target string that the expressions will operate on? Is it just the file name? the full path? The path after the search folder?

    I would like to import the TV recording of episodes that mediaportal makes. But they contain no season # or episode # info. The format is unusual too: "Episode_name~ Series_name" Example: I_See_You~ Breaking_Bad

    1) What regexp could I use to extract the episode title and series name from filenames such as this? and should I use the string replacement tab to replace the underscores with spaces?
    2) Is it possible to find a match in the online database even though I can only provide the series name and episode title (no episode or season number)?
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    2) Is it possible to find a match in the online database even though I can only provide the series name and episode title (no episode or season number)?

    Not with the current version, however a future version is on the way that will have airdate and episode-title match ability. Your only option is to use the import wizard in the configuration screen and manually map each episode in step 3, after you verify the correct series name at step 2.

    So you do need to assure that the series name is obtained from your files, which from the looks of it will require a custom expression, but you should be able to do this with a simple one without knowing a lot about regular expressions. The weird chars that need to become spaces, can be dealt with via string replacements, as you will notice a few already present to deal with this.
     

    frankteb

    MP Donator
  • Premium Supporter
  • April 5, 2005
    1,118
    92
    Home Country
    Germany Germany
    AW: Expressions/Rules requests

    I tried severl rules from this thread and tried to make own rules but it didn't work.

    I've got these three situations
    c:\seriesname\SxxExxx - title.ext
    c:\seriesname\SxxExx - title.ext
    c:\seriesname\SxxExxExx - title.ext


    I've created this rule but it doesn't work.
    (?<series>)\S[(?<season>[0-9]{1,2})E(?<episode>[0-9]{1,3})\]

    Perhaps someone can help me.


    frankteb
     

    Users who are viewing this thread

    Top Bottom