category translation when adding via API?
Posted: March 27th, 2019, 6:11 pm
Hello.
SABnzbd 2.3.8 from Git source on Debian 9.8.
I might be missing something really simple here, but it seems when NZBHydra2 sends an NZB to SABnzbd, it's not being assigned to the correct category within SABnzbd.
My config is: a single SABnzbd category called "movies", with the "Indexer Categories / Groups" field set to:
...(the redundancy is because I've been testing things).
So, I then push an NZB from NZBHydra to SAB and view the SAB debug log:
SAB then shows the new NZB with the category temporarily set to "Movies SD" while it's being fetched. It then changes to "movies sd", instead of "movies". It seems an NZB can be pushed onto the SAB queue with a new category?
If I understand correctly, SAB should automatically translate "Movies SD" into "movies":
Thank you.
SABnzbd 2.3.8 from Git source on Debian 9.8.
I might be missing something really simple here, but it seems when NZBHydra2 sends an NZB to SABnzbd, it's not being assigned to the correct category within SABnzbd.
My config is: a single SABnzbd category called "movies", with the "Indexer Categories / Groups" field set to:
Code: Select all
movies*, moviesbluray, movies sd
So, I then push an NZB from NZBHydra to SAB and view the SAB debug log:
Code: Select all
2019-03-28 08:53:15,756::DEBUG::[interface:481] API-call from 127.0.0.1 [okhttp/3.11.0] {'nzbname': u'NA.2016.DVDScr.576p.H264.nzb', 'apikey': u'<HASH>d3240a3', 'name': u'http://talia:5076/getnzb/api/7005068519891039509?apikey=<APIKEY>', 'cat': u'Movies SD', 'priority': u'-100', 'mode': u'addurl', 'output': u'json'}
2019-03-28 08:53:20,357::DEBUG::[nzbstuff:560] META-DATA = {u'category': [u'Movies > SD'], u'name': [u'NA.2016.DVDScr.576p.H264 [02/14] - "<HASH>828c825.part1.rar" yEnc'], u'x-downloaded-from': [u'https://nzbfinder.ws']}
2019-03-28 08:53:20,361::INFO::[__init__:624] Backing up /share/downloads/sabnzbd/nzb/backup/NA.2016.DVDScr.576p.H264.nzb.gz
2019-03-28 08:53:20,469::INFO::[__init__:624] Backing up /share/downloads/sabnzbd/incomplete/NA.2016.DVDScr.576p.H264/__ADMIN__/NA.2016.DVDScr.576p.H264.nzb.gz
2019-03-28 08:53:20,498::DEBUG::[misc:178] Cat->Attrib cat=movies sd pp=3 script=CharTranslator.py prio=0
2019-03-28 08:53:20,520::DEBUG::[misc:178] Cat->Attrib cat=movies sd pp=3 script=CharTranslator.py prio=0
If I understand correctly, SAB should automatically translate "Movies SD" into "movies":
... but this does not appear to happen. How can I fix this?Wiki wrote:Categories are applied:
- When the indexer category tag or newsgroup of the download matches the field for that category.
- When the indexer category tag starts with one of your categories.
- When an RSS feed specifically applies a particular category.
- When added via the Watched Folder using special file or folder name.
- When a download gets added via the API that also specifies a category.
Thank you.