[1.2.0] h.264 in nzb name confuses series sorting

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
CarpeDemon
Newbie
Newbie
Posts: 3
Joined: January 18th, 2017, 12:10 am

[1.2.0] h.264 in nzb name confuses series sorting

Post by CarpeDemon »

I've found an easily reproducible bug where the tv sorting gets confused by having either "h.264" or "h 264" in the nzb name.
For example:

Foo - 2017-01-20 bar baz 720p h.264.nzb

Instead of identifying as a "Foo" dated "2017-01-20"
sab decides it is a "Foo - 2017-01-20 bar baz 720p h" episode s02e64

I have a workaround in my pre-queue script to rewrite "h.264" and "h 264" to "h264"
But it seems like this must be a common problem that would be better fixed in sab's series sorting code.
It also triggers on "h.265"
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: [1.2.0] h.264 in nzb name confuses series sorting

Post by safihre »

You're very welcome to submit a change on our github repo: https://github.com/sabnzbd/sabnzbd

The sorting code hasn't been changed in a long while!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [1.2.0] h.264 in nzb name confuses series sorting

Post by shypike »

Series sorting doesn't support date-based series names.
It looks for something that resembles season/episode.
264 qualifies, because this format is used a lot.
We would need to filter out things like 264 first
and that would make it fail for season 2, episode 64.
Although, 64 is not a common episode number.
We'll see what we can do in a future release.
Erikson
Newbie
Newbie
Posts: 1
Joined: March 19th, 2019, 9:50 pm

Re: [1.2.0] h.264 in nzb name confuses series sorting

Post by Erikson »

shypike wrote: February 7th, 2017, 4:37 pm Series sorting doesn't support date-based series names.
It looks for something that resembles season/episode.
264 qualifies, because this format is used a lot.
We would need to filter out things like 264 first
and that would make it fail for season 2, episode 64.
Although, 64 is not a common episode number.
We'll see what we can do in a future release.
Hey guys, I'm having the same issue as OP, I signed up just to bump this post.

Could you not exclude "h.264" from sorting as a known keyword? Or allow the user to define certain keywords to ignore? Sorry I'd make a pull request but my Python is terrible.
Post Reply