[BUG] "/" in a category name within NZBGet Web

Get help, report and discuss bugs.
Post Reply
KaraokeStu
Posts: 39
Joined: 17 Sep 2008, 20:01

[BUG] "/" in a category name within NZBGet Web

Post by KaraokeStu » 17 Sep 2008, 20:59

Hi,

I have a category of "Video/TV" and "Video/Movies"

If I put NZB files in these dirs, NZBGet assigns the category correctly.

Unfortunately if I try to change a category using the web interface, the following happens:

Video/TV -> Video\/TV
Video/Movies -> Video\/Movies

If I try to change them again, more backslashes keep getting added.

Using latest stable releases as of today

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [BUG] "/" in a category name within NZBGet Web

Post by hugbug » 19 Sep 2008, 22:41

Yeah, it's bad. Why I didn't check it before? :)

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [BUG] "/" in a category name within NZBGet Web

Post by hugbug » 20 Sep 2008, 10:22

Fixed in revision 228 (server-side bug).
Due to importance of the bug I'll release a new version (0.5.1) soon.

KaraokeStu
Posts: 39
Joined: 17 Sep 2008, 20:01

Re: [BUG] "/" in a category name within NZBGet Web

Post by KaraokeStu » 22 Sep 2008, 16:54

There is still a problem with the web frontend

If I move from "Music" to "Video/TV" I get the following:

Mon, 22 Sep 2008 17:50:57 +0100 Moving file /mnt/disk1/nzbget/dst/Music/Test_Drive__Eve_of_Destruction/cfn-tdeod.r00 to /mnt/disk1/nzbget/dst/Video//TV/Test_Drive__Eve_of_Destruction/cfn-tdeod.r00

There is a double-slash there

NZBGet-Web also changes the dropdown so it now says "Video\/TV"

The bug within NZBGet is almost fixed and the bug in the web interface still exists.

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [BUG] "/" in a category name within NZBGet Web

Post by hugbug » 22 Sep 2008, 20:43

I tested it again and it works for me.
Make sure you are using version 0.5.1 (already released; hope not too early).

Also note, that you should not use escape-characters in settings.php, when using single quotation marks:

Code: Select all

$categories=array(
	'',       // empty line allows to set the empty category
    'music',
    'video',
    'video/movies',
    'My Staff',
);
Do not write 'video/\movies'.

KaraokeStu
Posts: 39
Joined: 17 Sep 2008, 20:01

Re: [BUG] "/" in a category name within NZBGet Web

Post by KaraokeStu » 25 Sep 2008, 00:33

Worked out my problem.

I'm running on Armel Lenny and you hadn't released an updated optware package.

I'm in the middle of building it on my linkstation (you have no idea how much of a pain it was finding all the right libraries!)

I'll let you know how it goes

KaraokeStu
Posts: 39
Joined: 17 Sep 2008, 20:01

Re: [BUG] "/" in a category name within NZBGet Web

Post by KaraokeStu » 25 Sep 2008, 00:46

I've tried and I'm unable to build NZBGet

The ./configure works ok, but make install gives this:

make: *** [install-am] Error 1

When are you likely to have 0.5.1 build available for the optware repository?

KaraokeStu
Posts: 39
Joined: 17 Sep 2008, 20:01

Re: [BUG] "/" in a category name within NZBGet Web

Post by KaraokeStu » 25 Sep 2008, 00:59

OK...

Played with a few bits (make, configure etc) and got it to work.

Only thing is it installs by default to /usr/bin

Since I normally install via optware, it should have the option to allow me to install to /opt/bin

I just moved nzbget to /opt/bin and everything is working as it should. Server is returning 0.5.1

KaraokeStu
Posts: 39
Joined: 17 Sep 2008, 20:01

Re: [BUG] "/" in a category name within NZBGet Web

Post by KaraokeStu » 25 Sep 2008, 01:10

Just to confirm.

The bug is now fixed and everything is working correctly and as expected! :mrgreen:

Now to just generate the ipkg files for our optware users (which I would imagine is a LARGE percentage)

Thanks so much for a great piece of software.

Do you have a donation address?

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [BUG] "/" in a category name within NZBGet Web

Post by hugbug » 25 Sep 2008, 07:21

I updated the optware make file. It might take a day or two until the updated package is compiled by optware build system and appears in repository. You can check if it happen by inspecting the content of repository for your feed. For most feeds look in subdirectory "cross/stable", for example for nslu2 - http://ipkg.nslu2-linux.org/feeds/optwa ... ss/stable/

Thank you for your intent to support the project. I enabled donations in project config. Please use the top left link "donate" on the main project page.

Post Reply

Who is online

Users browsing this forum: No registered users and 45 guests