Series sorting (SSEE)

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
mammuth
Newbie
Newbie
Posts: 3
Joined: October 8th, 2011, 11:16 am

Series sorting (SSEE)

Post by mammuth »

Hi,

The series sorting don't match releases with the season/episode format SSEE.
I did the following fix to the series_match in constants.py (line 126).

From:

Code: Select all

(r'[ \-_\.](\d)(\d{2,2})[ \-_\.]', # .101. / _101_ / etc.
     [
     ] ),
(r'[ \-_\.](\d)(\d{2,2})$', # .101 at end of title
     [
     ] )
To:

Code: Select all

(r'[ \-_\.](\d{1,2})(\d{2,2})[ \-_\.]', # .101. / _101_ / etc.
     [
     ] ),
(r'[ \-_\.](\d{1,2})(\d{2,2})$', # .101 at end of title
     [
     ] )
/Mammuth
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Series sorting (SSEE)

Post by shypike »

Nice touch, but did you check for side-effects?
Doesn't it pick up years?
mammuth
Newbie
Newbie
Posts: 3
Joined: October 8th, 2011, 11:16 am

Re: Series sorting (SSEE)

Post by mammuth »

No side effect check yet, just tried it out for a couple of posts.
I guess it will detect years also but i don't see how that could be avoided for this kind of episode notation. Since it's only used for categories marked as series it could be ok anyway.

I can evaluate it for a while if you wish.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Series sorting (SSEE)

Post by shypike »

If you have tv and movies in overlapping categories, movie years could be detected as SSEE instead.
That's the reason we went for SEE instead. Also because series with more than 9 seasons aren't very common.
Most sensible posters use 1x01 and S01E02 notatons.
mammuth
Newbie
Newbie
Posts: 3
Joined: October 8th, 2011, 11:16 am

Re: Series sorting (SSEE)

Post by mammuth »

Didn't realize you could have movies and series in the same category.
How do you handle if both movie and series sorting is enabled for a category, does sab test one first and the other if no match?

I agree that the SSEE notation is bad but the problem for me is when I use the RSS feed from a indexer service (nzbindex.nl) instead of user submitted nzbs, the nzb filename do get the filename of the first file in the collection which has the SSEE format for Simpsons.
I tried to mod the urlgrabber to ignore the filename in the http response for nzbindex.nl so i would get the entire post header as nzb name. This messes up the sorting but in combination with a pre processor script that cleans up the name it could solve my problem.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Series sorting (SSEE)

Post by shypike »

We don't use nzbindex.nl titles because of their bizarre content and outrageous sizes.
If you're happy with the patch in the regex, do keep using it.
We'll be looking at further improvements in later versions.
If you want true sophistication in series handling, try using SickBeard as a front-end.
Post Reply