Page 1 of 1

Adding a default server in cfg.py

Posted: July 20th, 2010, 9:29 am
by Kcin
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

Re: Adding a default server in cfg.py

Posted: July 20th, 2010, 10:08 am
by shypike
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.