Parsing expression (1 Viewer)

-ltb-

Portal Pro
April 10, 2006
4,204
21
Home Country
France France
Hi all,
I need some help with a parsing expression.
I ve got some series, unfortunately on dvds, tag like that : [season x episode].-.seriesname.-.episodename.ext. I tried this expression but with no success, so how to do?
thx
 

Paranoid Delusion

Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,052
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    hi ltb

    Had similar problems myself, as i was ripping all 167 episodes of StarTrek Deep Space Nine to avi, on how to name them. ended up with

    StarTrek DS9 1x01 Emissary

    so

    Name of Show, Series x Episode number, episode name.

    TVSeries parsed that fine first time, had initially put the whole name in "StarTrek Deep Space Nine" and it would not find.

    Hope that helps
     

    -ltb-

    Portal Pro
    April 10, 2006
    4,204
    21
    Home Country
    France France
    in fact, i've managed to parse the serie but it's not a clean parsing, in the database the local serie name is "[" and the episode serie name is "Stargate SG-1.-.aaaaaaaaaaa", the rest is ok
     

    G.B. Wolf

    MP Donator
  • Premium Supporter
  • March 22, 2007
    227
    3
    Braunschweig
    Home Country
    Germany Germany
    You have to escape symbols like [ ] \ . in the expressions as they are used for controling the regex matching mechanism. So instead of

    [season x episode]

    it would be

    \[season x episode\]
     

    -ltb-

    Portal Pro
    April 10, 2006
    4,204
    21
    Home Country
    France France
    :D

    EDITT\\


    I tried thoses expressions: (i've disabled the defaults expressions for the test)
    \[season x episode\].-.<series>.-.<episode>.<ext>
    \[<season> x <episode>\].-.<series>.-.<episode>.<ext>
    and it seems still not working when i make a parsing test but the last expression appears valid in the log

    here's the log:
    07/11/2007 16:49:12 - Compiling Regex...
    07/11/2007 16:49:12 - Compiled Regex sucessfuly, 1 valid Expressions found
    07/11/2007 16:49:12 - Parsing test beginning, getting all files...
    07/11/2007 16:49:12 - Searching for all supported videos files within E:\ and it's subfolders.
    07/11/2007 16:49:12 - Found 10 supported video files.
    07/11/2007 16:49:12 - ParseLocal starting, processing 10 files...
    07/11/2007 16:49:12 - ParseLocal finished..
    07/11/2007 16:49:12 - Parsing failed for [7x12].-.Stargate.SG-1.-.La fontaine de jouvence.-.partie.2.avi
    07/11/2007 16:49:12 - Parsing failed for [7x13].-.Stargate.SG-1.-.Le voyageur intérieur.avi
    07/11/2007 16:49:12 - Parsing failed for [7x14].-.Stargate.SG-1.-.Dangeureuse Alliance.avi
    07/11/2007 16:49:12 - Parsing failed for [7x15].-.Stargate.SG-1.-.Chimères.avi
    07/11/2007 16:49:12 - Parsing failed for [7x16].-.Stargate.SG-1.-.La fin de l' union.avi
    07/11/2007 16:49:12 - Parsing failed for [7x17] - Stargate.SG-1.-.Héros.-.partie 1.avi
    07/11/2007 16:49:12 - Parsing failed for [7x18].-.Stargate.SG-1.-.Heros.-.partie 2.avi
    07/11/2007 16:49:12 - Parsing failed for [7x19] - Stargate.SG-1.-.Résurrection.avi
    07/11/2007 16:49:12 - Parsing failed for [7x20].-.Stargate.SG-1.-.Lutte de pouvoir.avi
    07/11/2007 16:49:12 - Parsing failed for [7x21] [7x22] - Stargate.SG-1.-.La cité perdue.-. partie 1 & 2.avi
    07/11/2007 16:49:12 - Parsing test completed
     

    -ltb-

    Portal Pro
    April 10, 2006
    4,204
    21
    Home Country
    France France
    regexp, i tried also in simple mode but the expression is not valid
     

    G.B. Wolf

    MP Donator
  • Premium Supporter
  • March 22, 2007
    227
    3
    Braunschweig
    Home Country
    Germany Germany
    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.

    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>[^.]*)$

    Wolf
     

    RICHARDG

    Portal Pro
    August 21, 2006
    333
    3
    66
    Canada
    Anyone know the score on how to get the tool to parse "Battlestar Galactica - 4x01&02 - Razor.avi" as two shows. I was pretty sure it did this yet its not working. Also rumour has it there is a new DLL somewhere one can download. Anyone know where that is..
     

    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