Page 1 of 2

nzbget category scripts not triggered

Posted: Wed May 27, 2020 3:31 am
by heweda
When assigning a category to a download in nzbget through nzb360, extension scripts for that category don't get triggered at all.
I checked nzbget's logs and while the category does get assigned, there's no logs about the extension scripts at all as if they were disabled or non-existent.
If I add a NZB to nzbget directly and set the category for it, then all works fine.

nzb360 version: 13.7
nzbget version: 21.0

Re: nzbget category scripts not triggered

Posted: Sat May 30, 2020 6:56 pm
by Kev
Should be fixed in next release =)

Re: nzbget category scripts not triggered

Posted: Sun May 31, 2020 12:54 am
by heweda
Kev wrote:
Sat May 30, 2020 6:56 pm
Should be fixed in next release =)
Sweet, thanks!

Re: nzbget category scripts not triggered

Posted: Sun May 31, 2020 8:19 am
by heweda
@Kev

Just tried v13.7.1.260 and I'm sad to report that the issue remains :(
Checked Nzbget logs and no difference between v13.7 and v13.7.1.260, the post-scripts don't get activated.

I also tried assigning the categories to Radarr downloads and Nzbget triggers the scripts fine there too.

Re: nzbget category scripts not triggered

Posted: Tue Jun 02, 2020 4:18 am
by heweda
Still doesn't work as of v13.7.1.261

Re: nzbget category scripts not triggered

Posted: Wed Jun 03, 2020 3:08 am
by heweda
Still no luck as of v13.7.1.262

Re: nzbget category scripts not triggered

Posted: Mon Jun 08, 2020 3:49 am
by Kev
Which call's does the web interface make to trigger the PP scripts? I am calling exactly what my web interface calls, so I am not sure why this isn't working.

Re: nzbget category scripts not triggered

Posted: Thu Jun 11, 2020 8:00 am
by heweda
Kev wrote:
Mon Jun 08, 2020 3:49 am
Which call's does the web interface make to trigger the PP scripts? I am calling exactly what my web interface calls, so I am not sure why this isn't working.
From looking at NZBget's API documentation, it looks like there's nothing to call to trigger the PP scripts.
When changing the category, you gotta use the "GroupApplyCategory" command parameter of the "editqueue" method.
Maybe you're using "GroupSetCategory" instead, which does the same as GroupApply but minus setting up the PP scripts.

Here's the "editqueue" method, there are the 2 parameters that almost do the same thing:

GroupSetCategory- Set category for group. Param contains category name.
GroupApplyCategory - Set or change category for groups and reassign pp-params according to category settings. Param contains category name.

Best regards

Re: nzbget category scripts not triggered

Posted: Thu Jun 11, 2020 2:43 pm
by Kev
Thanks for the info! I am using set, rather than apply, so that explains it. Not sure why they have two methods for this. Need to confirm Apply doesn't have any detrimental effects with non-PP script setups.

Re: nzbget category scripts not triggered

Posted: Thu Jun 11, 2020 7:12 pm
by heweda
Yes I can't think of any use for the set parameter. Not sure why it's there.
As for Apply, it will just behave like Set if there are no PP scripts associated with the category.