Page 1 of 1

Category2.DestDir refuses to work

Posted: 27 Jul 2019, 10:29
by twinsuns
Hi there, I have this frustrating problem where it seems that nzbget refuses to use the DestDir of any category other than Category1.

The example here is that if the nzb has Category1 'Movies' it works fine and puts it in '${MainDir}/completed-for-plex/Movies' but anything in the Category2 'TV Shows' (or any other category it seems) will ignore '${MainDir}/completed-for-plex/TV Shows' and just put in the default '${MainDir}/completed'

I have tried everything I can think of including making sure category passed from sonarr is correct, escaping 'TV Shows' in the path, creating a 'TV-Shows' category with no spaces and using absolute paths. A TV Show nzb will be in the correct category when downloading but just will ignore its proper DestDir...

Hopefully I'm just missing something obvious. Thanks.

Annotation 2019-07-27 112210.jpg
Annotation 2019-07-27 112335.jpg

Re: Category2.DestDir refuses to work

Posted: 27 Jul 2019, 15:14
by hugbug
The nzb-log contains messages about moving of files where we can see the paths used.
To inspect the log switch to history tab, click on an item which you want to inspect, then button "Log", then button "Save to file". Post the file to pastebin.com and the link to it here on forum. We'll look into this together.

Re: Category2.DestDir refuses to work

Posted: 27 Jul 2019, 15:45
by twinsuns
Thanks for the reply. I can't see anything helpful in the log but here you go: https://pastebin.com/vnJyKti1

Re: Category2.DestDir refuses to work

Posted: 27 Jul 2019, 16:12
by hugbug
The log isn't useful indeed.
In history for this nzb item - is the category set to TV Shows?

To check the destination directory assigned to that item please open in a browser the url http://nzbget-ip:nzbget-port/jsonrpc/history. Please post it via pastebin, you can remove all other items to not expose your whole history.

Re: Category2.DestDir refuses to work

Posted: 27 Jul 2019, 18:27
by twinsuns
Yup it's set to TV Shows: https://pastebin.com/9utbkUsw

And here is an example of a Movie, to which it works and puts it the the correct folder: https://pastebin.com/iSzBBgwg

And here is the config file section for categories: https://pastebin.com/Rb7dRXy8

Re: Category2.DestDir refuses to work

Posted: 27 Jul 2019, 18:40
by twinsuns
Okay I think I figured it out, for some reason at the bottom of the config file was this mess: https://pastebin.com/b053czs3

So I assume that the two "Category2.DestDir=" entries are setting the path back to default.

Shall I remove all references to categories and keep the rest?

Re: Category2.DestDir refuses to work

Posted: 27 Jul 2019, 20:24
by hugbug
twinsuns wrote:
27 Jul 2019, 18:40
Shall I remove all references to categories and keep the rest?
Please remove the wrong entries and keep the correct (probably first) ones.

Re: Category2.DestDir refuses to work

Posted: 27 Jul 2019, 23:29
by twinsuns
Great that fixed it! Thanks for the help!