Parsing expression (1 Viewer)

G.B. Wolf

MP Donator
  • Premium Supporter
  • March 22, 2007
    227
    3
    Braunschweig
    Home Country
    Germany Germany
    Please don't hijack other people's topics. ;)

    To your questions:
    The basic version for mulitple eps is "Battlestar Galactica - 4x01-4x02 - Razor.avi". At least that is what I can see in the regexp. Perhaps 4x01&4x02 would also work, but I cannot see a version without the doubled season index.

    The newest "official" DL can be found here: https://forum.team-mediaportal.com/tvseries_v1_2_9_34660_20_10-t15703.html
    The newest SVN version is located here: https://forum.team-mediaportal.com/svn_versions-t22053.html

    Best regards
     

    -ltb-

    Portal Pro
    April 10, 2006
    4,204
    21
    Home Country
    France France
    So...

    For simple mode it would be something like:

    Code:
    [season x episode].-.<series>.-.<title>.<ext>

    Here he shouldn't care about the specials regexp characters.
    it doesn't work, parsing failed

    In regexp you missed the fetching of the data itselves... the syntax is a little bit strange, but I'd try this:

    Code:
    ^\[(?<season>[0-9]+) x (?<episode>[0-9]+)\]\.-\.(?<series>[^\\\[]*)\.-\.(?<title>(?!.*sample)[^\\]*?[^\\]*?)\.(?<ext>[^.]*)$
    same.

    But if i use this expression
    Code:
    ^.*?\\?(?<series>[^\\$]+?)(?:s(?<season>[0-1]?\d)e(?<episode>\d\d)|(?<season>(?:[0-1]\d|(?<!\d)\d))x?(?<episode>\d\d))(?!\d)(?:[ .-]?(?:s\k<season>e?(?<episode2>\d{2}(?!\d))|\k<season>x?(?<episode2>\d{2}(?!\d))|(?<episode2>\d\d(?!\d))|E(?<episode2>\d\d))|)[ -.]*(?<title>(?![^\\]*?sample)[^\\]*?[^\\]*?)\.(?<ext>[^.]*)$
    the parsing test is completed but there're many mistakes:
    - the parsed series name is "[" instead of Stargate...
    - episode title is "]Stargate sg_1......."

    So i need to make some changes in this expression

    Thx
     

    patrick

    Portal Pro
    April 20, 2005
    608
    45
    Southeast
    Home Country
    United States of America United States of America
    So i need to make some changes in this expression

    Based on the info from your first post try the following.

    I was able to parse this:
    Code:
    [10 x 10].-.Stargate SG-1.-.Quest(1).avi


    With this RegEx:
    Code:
    \[(?<season>[0-2]?\d) x (?<episode>[0-2]?\d)\]\.-\.(?<series>.*)\.-\.(?<title>(?![^\\]*?sample)[^\\]*?[^\\]*?)\.(?<ext>[^.]*)$



    HTH,
    patrick
     

    -ltb-

    Portal Pro
    April 10, 2006
    4,204
    21
    Home Country
    France France
    obviously, we need to have approval for adding files now, we have to wait
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Yes, sorry, files now need to be approved by a moderater before they can be seen. Reason being we have to be careful what files are actually hosted on this server. Sorry :-(

    If you need/want your images to appear immediatly, I suggest you upload them to imageshak or something, otherwise it may take a few hours for a mod to see. I try to approve them as soon as I see them, but I may miss a few.
     

    -ltb-

    Portal Pro
    April 10, 2006
    4,204
    21
    Home Country
    France France
    No problem Inker, thx
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Heres an expression that should work for you:

    Code:
    \[(?<Season>\d)x(?<Episode>\d\d)\]\.-\.(?<series>.+?)\.-\.(?<title>.+)\.(?<ext>.+)
     

    Users who are viewing this thread

    Similar threads

    fixed the episode naming above ^. There was no error in the naming of the file itself. Every time I enter TV Series, it tries to re-scan the episodes. The series appears for just a few seconds and disappears again.
    fixed the episode naming above ^. There was no error in the naming of the file itself. Every time I enter TV Series, it tries to...
    I recorded all 6 episodes of "Walking With Dinosaurs (2025)" from PBS, edited the non essential stuff out and saved them as MKV. I...
    Replies
    1
    Views
    2K
    I agree about the dash instead of colon on the LIVE thing. I did a little change to get the current program, just removed the D from the tags. Not that important, so I dont upload any new file. A little sad about the end time, but nothing to do about it.
    I agree about the dash instead of colon on the LIVE thing. I did a little change to get the current program, just removed the D...
    I'm trying to develop a new WebEPG grabber for sweden, but I got a few problem in parsing the html-file to get all programs. In...
    Replies
    9
    Views
    3K
    Reading through your code, I can see it's more than a couple steps above my paygrade. :cry:
    Reading through your code, I can see it's more than a couple steps above my paygrade. :cry:
    I used to run the TVService under the "NT Service\TVService" account to follow least privileges principal (not exposing my whole...
    Replies
    3
    Views
    2K
    MP1 MP2 EPGCleaner for x64 DE
    Thanks. Worked perfectly. The installer won’t work but dropping the DLL in worked.
    Thanks. Worked perfectly. The installer won’t work but dropping the DLL in worked.
    Hi there I've just made the switch from a working and stable 1.36 x86 installation (Standalone TVServer and a TVClient both...
    Replies
    3
    Views
    3K
    For music you may use --> https://www.team-mediaportal.de/erweiterungen/musik/global-search With GlobalSearch you can search for any entry in your music database: Artist, Album, Title, Lyrics... I'm afraid there is no such plugin :unsure:
    For music you may use --> https://www.team-mediaportal.de/erweiterungen/musik/global-search With GlobalSearch you can search for...
    HI, I'm new to MediaPortal and have a question about searching for data. I have an extensive collection of music, films, and TV...
    Replies
    1
    Views
    3K
    Top Bottom