SABnzbd-Suite: settings: safe defaults

This commit is contained in:
Stefan Saraev 2012-06-17 21:15:11 +03:00
parent b20147b3ea
commit 381f87b7ce
3 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2.1.6
- fixed another startup bug
2.1.5 2.1.5
- fixed bug in startup (caused by couchpotatoserver / configobj) - fixed bug in startup (caused by couchpotatoserver / configobj)
- add possibilty to start / stop addon from addon manager with enable / disable - add possibilty to start / stop addon from addon manager with enable / disable

View File

@ -20,7 +20,7 @@
PKG_NAME="SABnzbd-Suite" PKG_NAME="SABnzbd-Suite"
PKG_VERSION="2.1" PKG_VERSION="2.1"
PKG_REV="5" PKG_REV="6"
PKG_ARCH="any" PKG_ARCH="any"
PKG_LICENSE="OSS" PKG_LICENSE="OSS"
PKG_SITE="http://www.openelec.tv" PKG_SITE="http://www.openelec.tv"

View File

@ -141,6 +141,22 @@ couchpotato_launch = getAddonSetting(suiteSettings, 'COUCHPOTATO_LAUNCH')
couchpotato_version = getAddonSetting(suiteSettings, 'COUCHPOTATO_VERSION') couchpotato_version = getAddonSetting(suiteSettings, 'COUCHPOTATO_VERSION')
headphones_launch = getAddonSetting(suiteSettings, 'HEADPHONES_LAUNCH') headphones_launch = getAddonSetting(suiteSettings, 'HEADPHONES_LAUNCH')
##########
# safe defaults. this is ugly
# someone with better knowledge in xbmc addon api
# please fix
if not sabnzbd_launch:
sabnzbd_launch = true
if not sickbeard_launch:
sickbeard_launch = "true"
if not couchpotato_launch:
couchpotato_launch = "true"
if not couchpotato_version:
couchpotato_version = "0"
if not headphones_launch:
headphones_launch = "true"
##########
# XBMC # XBMC
fXbmcSettings = open(pXbmcSettings, 'r') fXbmcSettings = open(pXbmcSettings, 'r')
data = fXbmcSettings.read() data = fXbmcSettings.read()