Expressions/Rules requests (8 Viewers)

spuck

Community Skin Designer
April 6, 2007
397
59
Home Country
Sweden Sweden
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>[^.]*)$
this regexp is a default one, can someone modify it so it works with episodes that have a space between season and episode.
Ex. "S01 E02" instead of "S01E02" or "102".

Thanks!
 

G.B. Wolf

MP Donator
  • Premium Supporter
  • March 22, 2007
    227
    3
    Braunschweig
    Home Country
    Germany Germany
    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>[^.]*)$
    this regexp is a default one, can someone modify it so it works with episodes that have a space between season and episode.
    Ex. "S01 E02" instead of "S01E02" or "102".

    Thanks!

    Code:
    ^.*?\\?(?<series>[^\\$]+?)(?:s(?<season>[0-1]?\d)e(?<episode>\d\d)|(?<season>(?:[0-1]\d|(?<!\d)\d))[x\s]?(?<episode>\d\d))(?!\d)(?:[.-]?(?:s\k<season>e?(?<episode2>\d{2}(?!\d))|\k<season>[x\s]?(?<episode2>\d{2}(?!\d))|(?<episode2>\d\d(?!\d))|E(?<episode2>\d\d))|)[-.]*(?<title>(?![^\\]*?sample)[^\\]*?[^\\]*?)\.(?<ext>[^.]*)$
    This should allow x, a blank or nothing between season and episode. :)
     

    G.B. Wolf

    MP Donator
  • Premium Supporter
  • March 22, 2007
    227
    3
    Braunschweig
    Home Country
    Germany Germany
    Hmm... you could try to replace the both \s I added with a real blank or taking the original and replace the x directly with a \s or a blank.

    btw: [Latest Full pack: 10. Dec 08] <-- That's a really new pack. ;)
     

    spuck

    Community Skin Designer
    April 6, 2007
    397
    59
    Home Country
    Sweden Sweden
    None of those suggestions worked..

    Well yes indeed that is true about the pack, at least I don't have to worry about it. :D
     

    Jac0r

    New Member
    January 17, 2008
    3
    0
    Home Country
    Germany Germany
    I don't really get this plugin.

    Is it possible for mytvseries to get the name of the series from the database online if the seriesname is nor in the videofilename neither in the foldername.

    Example:
    D:\SxxExx - Episodename.avi (DVD-Rom)
    H:\Downloads\SxxExx - Episodename.avi
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Hmm... at least in theory this has to work... otherwise it seems that there's a problem with the whitespace. Inker? :)

    Not sure why I didn't see this before (though I just read spuck complaining about that naming format, lol), anyways, all you ahve to do is add a \s? before the e
    (Not really sure what you guys tried, eyes get really strained trying to read someone elses regex, hehe)
    Code:
    ^.*?\\?(?<series>[^\\$]+?)(?:s(?<season>[0-1]?\d)\s?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>[^.]*)$
    Tested with "Test S1 E01.avi"
    Let me know if it works.

    I don't really get this plugin.

    Is it possible for mytvseries to get the name of the series from the database online if the seriesname is nor in the videofilename neither in the foldername.

    Example:
    D:\SxxExx - Episodename.avi (DVD-Rom)
    H:\Downloads\SxxExx - Episodename.avi

    Nope, need to have: seriesname/season/ep in there.
     

    Zappza

    MP Donator
  • Premium Supporter
  • December 10, 2006
    176
    9
    Home Country
    Norway Norway
    Hi!

    I would like to add some animes that I watch to My TV-Series.

    The filename looks like this:

    Ex:

    Bleach - 01 - [CRC32 value].avi
    Bleach - 100 - [CRC32 value].avi

    Is it possible to get an expression that parses both the files with two and three digits? I can rename all of them to match three digits, so thats not a problem.

    Regards,
    Bjarte
     

    spuck

    Community Skin Designer
    April 6, 2007
    397
    59
    Home Country
    Sweden Sweden
    Thanks Inker, that worked. Now I can seed season torrents with those stupid naming and still be able to watch them with mytvseries. :D
     

    Users who are viewing this thread

    Top Bottom