Naming servers

Want something added? Ask for it here.
Post Reply
dorentuz
Newbie
Newbie
Posts: 5
Joined: May 6th, 2009, 4:51 pm

Naming servers

Post by dorentuz »

I'd really like to see an input field to change a servers name. It's somewhat annoying to have to think about which port belongs to a server (I'm using tunnels, so they all show localhost as the host).

I'm sure this can't be too hard to implement.. :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Naming servers

Post by shypike »

Add some nice names into the hosts table and use those.
Windows: c:\WINDOWS\system32\drivers\etc\hosts

Code: Select all

127.0.0.1       localhost
127.0.0.1       MyFirstServer
127.0.0.1       MySecondServer
I'm sure that even easier to do.
dorentuz
Newbie
Newbie
Posts: 5
Joined: May 6th, 2009, 4:51 pm

Re: Naming servers

Post by dorentuz »

If I was using windows, that'd be possible.. However, I'm not. Okay, I know that's a possibility, but imho it's something that's supposed to be in the program itself..

If you don't think it's something needed in sabnzbd+, I'll just add it myself :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Naming servers

Post by shypike »

For other operating systems it works the same.
All Unixes/Linuxes/OSX usee a hosts file.
(Did you think Microsoft invented this  ;D )

I'm not saying it cannot be changed in SABnzbd, but that it has no priority now.
Currently the servers are stored with hostname:port as key.
Changing it is quite a bit of work.
dorentuz
Newbie
Newbie
Posts: 5
Joined: May 6th, 2009, 4:51 pm

Re: Naming servers

Post by dorentuz »

I know there's a hosts file on unix/linux/osx as well, but you only mentioned the windows one.

As far as changing it, I see no need to change the way it's stored. It's just an extra field that has no function besides showing a name. I managed to change it in the configuration, but haven't figured out how to access the name on the connections page yet..

edit:
Apparently I missed something in downloader.py.. Got it working now.
Last edited by dorentuz on May 7th, 2009, 10:34 am, edited 1 time in total.
dorentuz
Newbie
Newbie
Posts: 5
Joined: May 6th, 2009, 4:51 pm

Re: Naming servers

Post by dorentuz »

Here are my changes. Maybe they could be of some use to someone.. :)
Last edited by dorentuz on May 8th, 2009, 8:27 pm, edited 1 time in total.
Post Reply