mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
Merge branch 'master' of github.com:OpenELEC/OpenELEC.tv
This commit is contained in:
commit
2625c8f62d
@ -1,3 +1,10 @@
|
||||
2.1.6
|
||||
- fixed another startup bug
|
||||
|
||||
2.1.5
|
||||
- fixed bug in startup (caused by couchpotatoserver / configobj)
|
||||
- add possibilty to start / stop addon from addon manager with enable / disable
|
||||
|
||||
2.1.4
|
||||
- fixes bug in sleep control
|
||||
- added couchpotato v2
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
PKG_NAME="SABnzbd-Suite"
|
||||
PKG_VERSION="2.1"
|
||||
PKG_REV="4"
|
||||
PKG_REV="6"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="OSS"
|
||||
PKG_SITE="http://www.openelec.tv"
|
||||
|
@ -141,6 +141,22 @@ couchpotato_launch = getAddonSetting(suiteSettings, 'COUCHPOTATO_LAUNCH')
|
||||
couchpotato_version = getAddonSetting(suiteSettings, 'COUCHPOTATO_VERSION')
|
||||
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
|
||||
fXbmcSettings = open(pXbmcSettings, 'r')
|
||||
data = fXbmcSettings.read()
|
||||
@ -345,6 +361,8 @@ md5pwd = hashlib.md5(pwd).hexdigest()
|
||||
|
||||
couchPotatoServerConfig = ConfigObj(pCouchPotatoServerSettings,create_empty=True)
|
||||
defaultConfig = ConfigObj()
|
||||
defaultConfig['newznab'] = {}
|
||||
defaultConfig['newznab']['api_key'] = ''
|
||||
defaultConfig['core'] = {}
|
||||
defaultConfig['core']['username'] = user
|
||||
defaultConfig['core']['password'] = md5pwd
|
||||
|
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
kill -9 `ps | grep -E 'python.*/SABnzbd-Suite.py' | cut -d" " -f 1` 2>/dev/null
|
||||
kill -9 `ps | grep -E 'python.*/SABnzbd.py' | cut -d" " -f 1` 2>/dev/null
|
||||
kill -9 `ps | grep -E 'python.*/SickBeard.py' | cut -d" " -f 1` 2>/dev/null
|
||||
kill -9 `ps | grep -E 'python.*/CouchPotato.py' | cut -d" " -f 1` 2>/dev/null
|
||||
kill -9 `ps | grep -E 'python.*/Headphones.py' | cut -d" " -f 1` 2>/dev/null
|
@ -35,14 +35,18 @@ __author__ = "OpenELEC"
|
||||
__url__ = "http://www.openelec.tv"
|
||||
__settings__ = xbmcaddon.Addon(id='service.downloadmanager.SABnzbd-Suite')
|
||||
__cwd__ = __settings__.getAddonInfo('path')
|
||||
__path__ = xbmc.translatePath( os.path.join( __cwd__, 'bin', "SABnzbd-Suite.py") )
|
||||
__start__ = xbmc.translatePath( os.path.join( __cwd__, 'bin', "SABnzbd-Suite.py") )
|
||||
__stop__ = xbmc.translatePath( os.path.join( __cwd__, 'bin', "SABnzbd-Suite.stop") )
|
||||
|
||||
#make binary files executable in adson bin folder
|
||||
subprocess.Popen("chmod -R +x " + __cwd__ + "/bin/*" , shell=True, close_fds=True)
|
||||
|
||||
checkInterval = 120
|
||||
timeout = 20
|
||||
wake_times = ['01:00','03:00','05:00','07:00','09:00','11:00','13:00','15:00','17:00','19:00','21:00','23:00']
|
||||
|
||||
# Launch Suite
|
||||
subprocess.call(['python',__path__])
|
||||
subprocess.call(['python',__start__])
|
||||
|
||||
|
||||
# SABnzbd addresses and api key
|
||||
@ -108,5 +112,7 @@ while (not xbmc.abortRequested):
|
||||
open("/sys/class/rtc/rtc0/wakealarm", "w").write("0")
|
||||
open("/sys/class/rtc/rtc0/wakealarm", "w").write(str(secondsSinceEpoch))
|
||||
|
||||
xbmc.sleep(checkInterval * 1000)
|
||||
time.sleep(0.250)
|
||||
|
||||
subprocess.Popen(__stop__, shell=True, close_fds=True)
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<string id="1023">Password</string>
|
||||
<string id="1024">Enable SABnzbd</string>>
|
||||
<string id="1025">Enable Sickbeard</string>
|
||||
<string id="1026">Enable Coutchpotato</string>
|
||||
<string id="1026">Enable Couchpotato</string>
|
||||
<string id="1027">Couchpotato Version</string>
|
||||
<string id="1028">Enable Headphones</string>
|
||||
<string id="2010">Network Settings</string>
|
||||
|
@ -30,6 +30,6 @@ if [ -f "$OPENELEC_SETTINGS" ]; then
|
||||
|
||||
mkdir -p /var/config
|
||||
cat "$OPENELEC_SETTINGS" \
|
||||
| awk -F'[\"|'\'']' '{gsub(/\"\;/, "\\\"", $4); gsub(/\&apos\;/, "\047", $4); gsub(/\&\;/, "&", $4); gsub(/\<\;/, "<", $4); gsub(/\>\;/, ">", $4); print $2"=\""$4"\"";}' \
|
||||
| awk -F'[\"|'\'']' '{gsub(/\"\;/, "\\\"", $4); gsub(/\&apos\;/, "\047", $4); gsub(/\&\;/, "\\&", $4); gsub(/\<\;/, "<", $4); gsub(/\>\;/, ">", $4); print $2"=\""$4"\"";}' \
|
||||
| sed '/^=/d' > /var/config/settings.conf
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user