Page 1 of 1

how are categories assigned for RSS feeds?

Posted: September 24th, 2024, 12:09 am
by OneCD
Hi guys, using SABnzbd 4.3.3 from source on Debian 12.7 and it's going great. Nice work. 🤓

Got a question though. I have a single RSS feed (it's to my bookmarks on DogNZB), and no-matter what is downloaded via this feed in SABnzbd, it's always assigned to the 'movies' category - even when it's a TV show episode.

My default category in SABnzbd is 'default', but 'movies' is the first custom category listed.

My 'tv' category in SABnzbd has the 'Indexer Categories/Groups' field set to "tv*".

The NZB received through the RSS feed also has the category set as "TV" (kinda... please see below) in the NZB file.

An example:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE nzb PUBLIC "-//newzBin//DTD NZB 1.1//EN" "http://www.newzbin.com/DTD/nzb/nzb-1.1.dtd">
<nzb xmlns="http://www.newzbin.com/DTD/2003/nzb">

<head>
 <meta type="category">TV &gt; HD</meta>
 <meta type="name">redacted</meta>
 <meta type="propername">redacted</meta>
 <meta type="guid">redacted</meta>
 <meta type="rid">redacted</meta>
</head>
If I download this NZB through my browser, then add it to SABnzbd via the web UI, it is correctly assigned to the ‘tv’ category.

But when downloaded via SABnzbd RSS, it is assigned to the ‘movies’ category.

Could the problem be the extra characters in the ‘category‘ XML structure?

How can I configure SABnzbd to use the category inside each NZB file for RSS feeds?

Thank you.

Re: how are categories assigned for RSS feeds?

Posted: September 24th, 2024, 4:28 am
by sander
Check your sabnzbd.log for lines like these:

Code: Select all

2024-09-23 12:14:04,103::DEBUG::[misc:389] Convert index site category "TV > HD" to user-cat "tv"
2024-09-23 12:14:04,104::DEBUG::[misc:389] Convert index site category "Movies > HD" to user-cat "movies"

... which is from https://github.com/sabnzbd/sabnzbd/blob ... #L355-L392 ... so there you can check how SAB assigns the category?

Re: how are categories assigned for RSS feeds?

Posted: September 24th, 2024, 5:35 am
by safihre
And do you have a screenshot maybe of your RSS filter configuration?

Re: how are categories assigned for RSS feeds?

Posted: September 24th, 2024, 3:44 pm
by OneCD
sander wrote: ↑September 24th, 2024, 4:28 am Check your sabnzbd.log for lines like these:

Code: Select all

2024-09-23 12:14:04,103::DEBUG::[misc:389] Convert index site category "TV > HD" to user-cat "tv"
2024-09-23 12:14:04,104::DEBUG::[misc:389] Convert index site category "Movies > HD" to user-cat "movies"

... which is from https://github.com/sabnzbd/sabnzbd/blob ... #L355-L392 ... so there you can check how SAB assigns the category?
Thanks @sander. :)

Checking my debug log, when SABnzbd read from my RSS feed, the "Convert" line you've indicated above didn't appear:

Code: Select all

2024-09-25 06:17:49,727::DEBUG::[nzbstuff:1964] Duplicate in history: False
2024-09-25 06:17:49,728::DEBUG::[nzbstuff:1967] Duplicate in queue: False
2024-09-25 06:17:49,729::DEBUG::[nzbstuff:1972] Duplicate in backup: False
2024-09-25 06:17:49,731::DEBUG::[filesystem:1224] Saving copy of Only.Murders.in.the.Building.S04E04.The.Stunt.Man.1080p.DSNP.WEB-DL.DDP5.1.H.264-NTb.nzb.gz in /share/downloads/sabnzbd/nzb/backup
2024-09-25 06:17:49,733::DEBUG::[misc:277] Parsing category movies to attributes: pp=3 script=nzbToMedia.py prio=0
2024-09-25 06:17:49,734::DEBUG::[nzbstuff:929] NZB nzo-info = {'RSS': 'dognzb - bookmarks', 'propername': 'Only Murders in the Building', 'episodename': 'The Stunt Man', 'failure': 'https://dognzb.cr/fail/<HASH>f776081/<HASH>25fedcf', 'more_info': 'http://thetvdb.com/?tab=series&id=399959', 'category': 'TV > HD', 'name': 'Only.Murders.in.the.Building.S04E04.The.Stunt.Man.1080p.DSNP.WEB-DL.DDP5.1.H.264-NTb', 'guid': '<HASH>df3553b', 'rid': '48979260'}
2024-09-25 06:17:49,735::INFO::[nzbqueue:230] Saving queue
If I add the NZB manually via the web UI, then I see a "Convert" line, and it is correct:

Code: Select all

2024-09-25 06:11:55,378::DEBUG::[nzbstuff:1964] Duplicate in history: False
2024-09-25 06:11:55,379::DEBUG::[nzbstuff:1967] Duplicate in queue: False
2024-09-25 06:11:55,380::DEBUG::[nzbstuff:1972] Duplicate in backup: True
2024-09-25 06:11:55,382::DEBUG::[filesystem:1224] Saving copy of Only.Murders.in.the.Building.S04E05.1080p.WEB.H264-SUCCESSFULCRAB.nzb.gz in /share/downloads/sabnzbd/nzb/backup
2024-09-25 06:11:55,412::DEBUG::[misc:377] Convert index site category "TV > HD" to user-cat "tv (unmanaged)"
2024-09-25 06:11:55,413::DEBUG::[misc:277] Parsing category tv (unmanaged) to attributes: pp=3 script=Deobfuscate.py prio=0
2024-09-25 06:11:55,414::INFO::[notifier:157] Sending notification: Warning - Pausing duplicate NZB "Only.Murders.in.the.Building.S04E05.1080p.WEB.H264-SUCCESSFULCRAB" (type=warning, job_cat=None)
2024-09-25 06:11:55,414::WARNING::[misc:102] Pausing duplicate NZB "Only.Murders.in.the.Building.S04E05.1080p.WEB.H264-SUCCESSFULCRAB"
2024-09-25 06:11:55,417::DEBUG::[nzbstuff:929] NZB nzo-info = {'category': 'TV > HD', 'name': 'Only.Murders.in.the.Building.S04E05.1080p.WEB.H264-SUCCESSFULCRAB', 'propername': 'Only Murders in the Building', 'guid': '<HASH>17962a8', 'rid': '49130957'}
2024-09-25 06:11:55,418::INFO::[nzbqueue:230] Saving queue
safihre wrote: ↑September 24th, 2024, 5:35 am And do you have a screenshot maybe of your RSS filter configuration?
Thank @safihre. :)

Ah, I didn't know (or completely forgot) this part existed. I've just checked, and yes - there's an entry for 'movies':

Image

I'll change that 'movies' to 'Default' and retest.

Update: yes, works fine now.

Thanks guys! I learned something today. :)

Re: how are categories assigned for RSS feeds?

Posted: September 24th, 2024, 3:51 pm
by sander
So ... that old RSS setting of yours forced everything to be "movies"? And SAB then skips processing the meta-header in the NZB?

If so: TIL

Re: how are categories assigned for RSS feeds?

Posted: September 25th, 2024, 3:47 am
by safihre
Yeah, the automatic processing only happens if there is no user input in any form :)