Expressions/Rules requests | Page 23

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

  1. Sphero

    Sphero Portal Pro

    Joined:
    June 4, 2008
    Messages:
    82
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Netherlands Netherlands
    I am having trouble parsing my formula1 races.

    Can anyone help me with a regex for: Formula1 2008x01.avi

    Thanks a lot


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. tranquil

    tranquil Portal Pro

    Joined:
    September 18, 2008
    Messages:
    110
    Likes Received:
    2
    Occupation:
    Perl Developer
    Location:
    Tel Aviv
    Ratings:
    +2 / 0
    Home Country:
    Israel Israel
    try:
    (?<series>[\w]+)\s*(?<season>\d{4})x(?<episode>\d{1,2})
    assuming 2008 is the "season"
    if not, you can drop the season section.

    try it out and let me know.
     
    • Like Like x 1
  4. Sphero

    Sphero Portal Pro

    Joined:
    June 4, 2008
    Messages:
    82
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Netherlands Netherlands

    Great, ill give this a try tonight. I have 3 more questions:

    1) Should I keep the default regexes enabled?
    2) The above regex should be a regex or simple?
    3) I can add it at the bottom?
     
  5. tranquil

    tranquil Portal Pro

    Joined:
    September 18, 2008
    Messages:
    110
    Likes Received:
    2
    Occupation:
    Perl Developer
    Location:
    Tel Aviv
    Ratings:
    +2 / 0
    Home Country:
    Israel Israel
    i can't give a 100% answer, but i can tell you what works for me.
    1. yes
    2. regex
    3. yes- since it wasn't identified, then the last rule should find it.
     
    • Like Like x 1
  6. Sphero

    Sphero Portal Pro

    Joined:
    June 4, 2008
    Messages:
    82
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Netherlands Netherlands
    I had to change the files to Formula_1 2008x01, but it seems to work now.

    Many thanks :D
     
  7. Erazor2

    Erazor2 Portal Member

    Joined:
    September 6, 2007
    Messages:
    11
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Germany Germany
    Hi,
    I'm looking for a search phrase which covers filenames like this:
    .\The 4400\01\The 4400 - 01x03 - Episode Title - language.avi
    and
    .\The 4400\01\The 4400 - 01x01 02 - Episode Title - language.avi
    where 02 is the episode2 tag.
    I hope, somebody can help me

    ----

    figured it out myself, but if someone could check the regex?
    Code (Text):
    1.  
    2. ^[^\\$]+\\[^\\$]+\\((?<series>[^\\$$]+)( - ))((?<season>[\d]+)x(?<episode>[\d]+)([\s]+(?<episode2>[\d]+))?( - ))((?<title>[^\\$]*)( - ))(?<language>[^\\$]*)\.(?<ext>[^\\$]+)$
    3.  
     
  8. Sirc

    Sirc Portal Member

    Joined:
    October 16, 2008
    Messages:
    13
    Likes Received:
    0
    Ratings:
    +0 / 0
    Hi,

    I'm looking for format rules that will parse Audio/Video codecs properly. I currently have this:

    Code (Text):
    1. <Enabled>1<Format>x () fps<FormatAs>
    2. <Enabled>1<Format>() , ()<FormatAs>
    3. <Enabled>1<Format>V_MPEG4/ISO/AVC<FormatAs>H264
    4. <Enabled>1<Format>MPA1L3<FormatAs>MP3
    5. <Enabled>1<Format>MPA2L3<FormatAs>MP3
    6. <Enabled>1<Format>V_MPEG2<FormatAs>MPEG2
    7. <Enabled>1<Format>MPEG-2V<FormatAs>MPEG2
    8. <Enabled>1<Format>DIV3<FormatAs>DIVX
    9. <Enabled>1<Format>DX50<FormatAs>DIVX
    10. <Enabled>1<Format>A_FLAC<FormatAs>FLAC
    11. <Enabled>1<Format>A_AAC/MPEG4/LC/SBR<FormatAs>AAC
    12. <Enabled>1<Format>A_AAC<FormatAs>AAC
    13. <Enabled>1<Format>A_AC3<FormatAs>AC3
    However this doesn't filter H264 codec and DX50, so I get errors such as:

    Code (Text):
    1. 10/20/2008 6:37:57 PM - This Logofile does not exist..skipping: D:\Applications\MediaPortal\MediaPortal\skin\Black & White 1080\TVSeries_Logos\BlackSilver\Glas\Misc\V_MPEG4.png
    2. 10/20/2008 6:37:57 PM - This Logofile does not exist..skipping: D:\Applications\MediaPortal\MediaPortal\skin\Black & White 1080\TVSeries_Logos\BlackSilver\Glas\Misc\ISO.png
    3. 10/20/2008 6:37:57 PM - This Logofile does not exist..skipping: D:\Applications\MediaPortal\MediaPortal\skin\Black & White 1080\TVSeries_Logos\BlackSilver\Glas\Misc\AVC.png
    Just looking to have my logos display properly without having to make individual files for each part of the H264 codec or DX50.
     
  9. Delinquent

    Delinquent New Member

    Joined:
    August 1, 2008
    Messages:
    3
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Hello peoples!

    OK, my strings are working to a extent, however after doing a bit of reading around no one has a answer for this one yet, how does the parser deal with a two part epsiode as 1 file but with two different episode names? I've been trying to find out if there is an additional <title> tag that allows you to record a second title name.

    For example:

    <Show_Name>\Season <Show_Season>\<Show_Name> <Show_Season>x<Episode_Number>-<Episode2_Number> - <Episode_Name>, <Episode2_Name>.avi
    eg: Greys Anatomy\Season 2\Greys Anatomy 02x26-27 - Deterioration Of The Fight Or Flight Response, Losing My Religion.avi

    this is one of my current parsing strings that i know works by giving both episode numbers, but not both titles

    (?<series>[\w .,'!&$]*)\\[\w .,'!&$]*\\[\w .,'!&$]*(?<season>[0-9]{2})[x](?([0-9]{2}-[0-9]{2})(?<episode>[0-9]{2})-(?<episode2>[0-9]{2})|(?<episode>[0-9]{2})).{3}(?<title>[^$]*?)\.(?<ext>[^.]*)

    Returns this:
    Code (Text):
    1. <series>Greys Anatomy</series>
    2.         <season>02</season>
    3.         <episode>26</episode>
    4.         <episode2>27</episode2>
    5.         <title>Deterioration Of The Fight Or Flight Response, Losing My Religion</title>
    6.         <ext>avi</ext>
    Is what im asking at all possible?
     
  10. duppsko

    duppsko Portal Member

    Joined:
    October 4, 2006
    Messages:
    30
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Norway Norway
    My episodes are called only 01,02 etc. My double episodes are called 01&02, but that i can change as there arent so many of them.
    What do i write to make it show double episodes?
    Like if i have 01&02, it will show both 1 and 2 in the series episode view.
     
  11. crazyfool

    crazyfool Portal Pro

    Joined:
    October 8, 2008
    Messages:
    237
    Likes Received:
    4
    Ratings:
    +4 / 0
    noob here lol... i think i got this right tho... i have my episodes set up as follow:
    Series\Season x\Episode x.mpg
    now am i right in thinking using this to parse the files:

    <series>\Season <season>\Episode <episode>.<ext>

    would work fine or would there be an easier way to name the files so i have less work to do as in manually adding things...
     
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!