Hi,
I am trying to add a default server in cfg.py so everytime i install sabnzbd the sabnzbd.ini file will be directly preconfigured and so i dont have to overwrite it.
If i am not mistaken in config.py, the "define_servers()" function read the cfg.py for a configured server.
But i couldnt find the right synthax to add a server with all the params.
Sorry i aint good in python.
Thanks for your help
Adding a default server in cfg.py
Forum rules
Help us help you:
Help us help you:
- Are you using the latest stable version of SABnzbd? Downloads page.
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Re: Adding a default server in cfg.py
Servers cannot get defaults in cfg.py.
It will require quite a few code lines to do this.
Sorry, but I'm not prepared to spend time writing them for you.
It will require quite a few code lines to do this.
Sorry, but I'm not prepared to spend time writing them for you.

