Adding a default server in cfg.py

Get help with all aspects of SABnzbd
Forum rules
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.
Post Reply
Kcin
Newbie
Newbie
Posts: 1
Joined: July 20th, 2010, 9:24 am

Adding a default server in cfg.py

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Adding a default server in cfg.py

Post 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.
Post Reply