Page 1 of 1
Naming servers
Posted: May 6th, 2009, 5:41 pm
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..

Re: Naming servers
Posted: May 7th, 2009, 6:44 am
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.
Re: Naming servers
Posted: May 7th, 2009, 9:06 am
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

Re: Naming servers
Posted: May 7th, 2009, 9:13 am
by shypike
For other operating systems it works the same.
All Unixes/Linuxes/OSX usee a
hosts file.
(Did you think Microsoft invented this

)
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.
Re: Naming servers
Posted: May 7th, 2009, 10:09 am
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.
Re: Naming servers
Posted: May 8th, 2009, 8:36 am
by dorentuz
Here are my changes. Maybe they could be of some use to someone..
