Request to expand Category groups search to include Subject:

Want something added? Ask for it here.
Post Reply
NachoPColtrane
Newbie
Newbie
Posts: 3
Joined: December 17th, 2016, 2:20 pm

Request to expand Category groups search to include Subject:

Post by NachoPColtrane »

First off, a resounding THANK YOU to the devs for creating SabNZBD. It's a first-rate application which is undoubtedly enjoyed the world over. Well done!

Problem - Prefer to download NZB files individually as opposed to scheduled RSS feed every 15 minutes. In doing so, the indexer tags are lost (ie, TV*) and automated Sab categorization fails on intermingled content from a.b.boneless (can't reliably sort TV and Movies).

Request - If at all possible, please expand the "group / indexer tags" field search to also include the NZB <file subject=""> field in addition to the NZB <groups> field. I think this would open up pattern matching on season episode numbers (ex - *S01*, *S02*, etc) which might be a good workaround for the lost indexer tagging.

I sure hope my explanation makes sense. Thanks again for all you do.

-Nachos
User avatar
safihre
Administrator
Administrator
Posts: 5357
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Request to expand Category groups search to include Subj

Post by safihre »

I am not sure if I understand completely ;)

What is the problem? Sabnzbd doesn't categorize correctly because of...?

In 1.2.0 the categorizing will be more flexible, it will also match the category title to the indexer category. So your TV category will match any tv* indexer tag.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
NachoPColtrane
Newbie
Newbie
Posts: 3
Joined: December 17th, 2016, 2:20 pm

Re: Request to expand Category groups search to include Subj

Post by NachoPColtrane »

Thanks for getting back to me so quickly.

As I understand it, the only way to retain indexer tags (ie - TV*) is by passing the NZB file to Sab via an RSS feed from your indexer. Apparently when you just send an individual NZB file to Sab (via /watched folder) that information get lost (makes sense as it's not contained within the actual NZB file).
At this point you can just hope that the you appended the correct usenet group to your search (ie - TV*, alt.binaries.teevee). Sometimes this works (ie - alt.binaries.teevee), while other times it doesn't (ie - alt.binaries.boneless is very common and contains a mix of obfuscated TV and Movie filenames).

Example NZB header:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE nzb PUBLIC "-//newz-snip-snip.td">
<nzb xmlns="http://www.newzbin.com/DTD/2003/nzb">

<head>
</head>
<file poster="[email protected] (Yenc-PP-A&A)" date="1435236255" subject="Something  [01/32] "Something.S01E03.Episode.3.1080p.WEB-DL.AAC2.0.H.264-BACON.par2" yEnc (1/1)">
 <groups>
  <group>alt.binaries.boneless</group>
 </groups>
 <segments>
  <segment bytes="69256" number="1">[email protected]</segment>
...
A possible workaround to this situation might be to expand the the "group / indexer tags" field search to also include the <file subject=""> portion of the nzb file header in addition to the existing <groups> portion. This way you could add some generic TV season information to your query (ie - TV*, alt.binaries.teevee, *S01E*, *S02E*, *S03E*, etc) and have the TV shows whisked away to the appropriate folder.

Ultimately I'd just like to pluck out the TV related downloads from my catch-all folder using some basic pattern matching. The remainder can remain and be treated as Movies, as they most likely are.
The need for this strict tv/movie separation is to help the Kodi folder scraper be more effective. It can search for either tv or movies, but not both on the same folder.

I've also just started to explore a greasemonkey script approach to the problem. Trying to rename the individual NZB files on-the-fly based on the URL (sudo code - if URL = "https://mysite/URL-for-tv" prepend {{tv}} to .nzb filename). Sadly I don't think this will work due to JavaScript sandboxing limitations.

--Edited to add--
Another good option might be to ask the indexer to add a feature for prepending the category name to the nzb filename (ie - somemovie.nzb becomes {{movie}}somemovie.nzb).
User avatar
safihre
Administrator
Administrator
Posts: 5357
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Request to expand Category groups search to include Subj

Post by safihre »

Usually the category is also stored inside the NZB:

Code: Select all

<head>
 <meta type="category">TV > HD</meta>
 <meta type="name">x</meta>
 <meta type="x-rating-id">7103e81771190e090a53f308acdea10c</meta>
 <meta type="x-rating-host">https://api.nzbgeek.info/feedback</meta>
</head>
Most Newznab indexers do this so basically 90% of them. SAB will use that info also when it comes from the Watched dir.

In case your indexer doesn't, you could always try a Pre-queue script, that scans the name of the NZB and bases the category on that?
https://sabnzbd.org/wiki/scripts/pre-queue-scripts
I think this would fix your problem! :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
NachoPColtrane
Newbie
Newbie
Posts: 3
Joined: December 17th, 2016, 2:20 pm

Re: Request to expand Category groups search to include Subj

Post by NachoPColtrane »

Dang you're quick ;)

Sadly one of our main indexers <cough>nzb.su<cough><cough> only sporadically includes category info in the nzb headers.

I'll definitely dig in to the pre-queue-script option. That sounds very promising.
Post Reply