Expressions/Rules requests (2 Viewers)

tebba

Portal Pro
November 8, 2007
56
0
Home Country
Norway Norway
Thanks, i tried to disable two of the original expressions, and the rar files turned up red, but ALL of them turned red, i want part01 to not turn up as red, but part02 and onwards.

The problem is, as you said when i add normal files, it wont pick up those with the new expressions enabled.
Is there any way i can make the original expressions and the new ones to work together?

I got these expressions from PUT on this forum, so i dont really know alot about regexp. :/


Code:
\\(?<series>.+)\.s(?<season>[0-9]+)e(?<episode>[0-9]+).+?\\.+(?:(?<!part\d\d\d|part\d\d)\.rar|\.part0*1\.rar)

\\(?<series>.+)\.(?<season>[0-9]+)x(?<episode>[0-9]+).+?\\.+(?:(?<!part\d\d\d|part\d\d)\.rar|\.part0*1\.rar)
 

pgjensen

Portal Pro
May 1, 2008
186
7
the following works for rar files (part01 part001, ignores the rest)

Code:
(?<series>.+)\.s(?<season>[0-9]+)e(?<episode>[0-9]+).+?\\.+(?:(?<!part\d\d\d|part\d\d)\.rar|\.part0*1\.rar)
Code:
(?<series>.+)\.(?<season>[0-9]+)x(?<episode>[0-9]+).+?\\.+(?:(?<!part\d\d\d|part\d\d)\.rar|\.part0*1\.rar)

your other expressions if enabled will pick up the part02+ part002+ rar files most likely. to fix that, the end part (?<ext>[^.]*) must be fixed.


try (?<ext>(?i:avi|mkv|ogm|wmv|anything_but_rar))
 

tebba

Portal Pro
November 8, 2007
56
0
Home Country
Norway Norway
with everything else disabled, except:

Code:
(?<series>.+)\.s(?<season>[0-9]+)e(?<episode>[0-9]+).+?\\.+(?:(?<!part\d\d\d|part\d\d)\.rar|\.part0*1\.rar)

Everything is red, part01 to partXX
I take it by ignores the rest you mean everything turns red except part01 etc.


Do you have an example of what that expression picks up?

Seriesname.s01e01.[720p.bluray.x264-groupname].part01.rar

im guesssing everything in the [] could be anything and it would still pick it up? It doesnt have to be an exact match except the s01e01 part?
 

carver

MP Donator
  • Premium Supporter
  • April 7, 2008
    55
    6
    stuttgart
    couldn't find something that matches with my problem - hope some of you can help me out:
    my structure:

    D:/series/Futurama/01x01 fry3000.avi

    when adding just the folder with the series ( here futurama ) it doesnt work.
    got to choose the series folder but then every series is added again...

    i'm sure theres is a simple solution - but can't see it anyway :sorry:

    thx guys
     

    pgjensen

    Portal Pro
    May 1, 2008
    186
    7
    it's because if it only sees your filename (when you add the series/Futurama folder) it doesn't see Futurama in the filename. When you go up a directory level and add D:/series it will see Futurama and match that with the online series.

    you'll have to explain in more detail as to why all other series are being added (if they already are and they're the same drive/directory/filename)
     

    Serberus

    Portal Member
    March 20, 2009
    12
    0
    Home Country
    United States of America United States of America
    I'm not sure if this has been requested or planning on being implemented, but we're running into documentaries and news-type programs where the best way to split them is by Year rather than "Season"

    It'd be really helpful if the ability of 4-digit seasons could be available.:D
     

    Serberus

    Portal Member
    March 20, 2009
    12
    0
    Home Country
    United States of America United States of America
    pgjensen: It's been discussed between we moderators and admins at theTVdb, and we're planning on leaving them with 4-digit season IDs, as it makes more sense.

    I thought you guys might want to look into how difficult it would be to code on your end, so your users would not run into problems.

    Let me know what you come up.
     

    pgjensen

    Portal Pro
    May 1, 2008
    186
    7
    we could probably test it for 1910-2050 or something and make that the season id. i'll mess with it in the code this week if i get a chance. after that i can deal with an expression. if it matches up to thetvdb.com season then it should be no problem. the code shouldn't have to be changed but maybe in a few trivial spots, if any.

    common format is yyyy-mm-dd right? if mm-dd-yyyy that's easy too to parse the year.
     

    Serberus

    Portal Member
    March 20, 2009
    12
    0
    Home Country
    United States of America United States of America
    The aired-date format being used right now is yyyy-mm-dd.

    Don't know if this will help but here's a series need of structure that has both 2-digit and 4-digit season numbers: Frontline (PBS)

    What we'd like to see is HTPC software reading 2-digit and 4-digit season IDs so series' like this one that are split by year rather than "seasons" can be labeled as such without interfering with ones with 2-digit season IDs.

    :D Thanks for looking into this pgjensen. If you can pull this off, it'd be extremely helpful.
     

    Users who are viewing this thread

    Top Bottom