mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
CouchPotato: initial XBMC addon added, needs work
This commit is contained in:
parent
7e0b03fe47
commit
2f64542624
@ -0,0 +1,2 @@
|
||||
0.99.1
|
||||
- initial version CouchPotato
|
BIN
packages/addons/downloadmanager/CouchPotato/icon/icon.png
Normal file
BIN
packages/addons/downloadmanager/CouchPotato/icon/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
7
packages/addons/downloadmanager/CouchPotato/install
Executable file
7
packages/addons/downloadmanager/CouchPotato/install
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/$1
|
||||
cp -PR $PKG_BUILD/* $ADDON_BUILD/$PKG_ADDON_ID/$1
|
||||
|
39
packages/addons/downloadmanager/CouchPotato/meta
Normal file
39
packages/addons/downloadmanager/CouchPotato/meta
Normal file
@ -0,0 +1,39 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2011 Anthony Nash (nash.ant@gmail.com)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="CouchPotato"
|
||||
PKG_VERSION=""
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="OSS"
|
||||
PKG_SITE="https://github.com/travisghansen/CouchPotato.git"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS="Python Cheetah SABnzbd"
|
||||
PKG_BUILD_DEPENDS="toolchain Python"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="plugins"
|
||||
PKG_SHORTDESC="CouchPotato: automated movie downloading."
|
||||
PKG_LONGDESC="CouchPotato: automated movie downloading."
|
||||
|
||||
PKG_IS_ADDON="yes"
|
||||
PKG_ADDON_TYPE="xbmc.service"
|
||||
|
||||
PKG_AUTORECONF="no"
|
@ -0,0 +1,49 @@
|
||||
From 16f5fe91074fb59cda5762d0d296bcd09b44c10c Mon Sep 17 00:00:00 2001
|
||||
From: Anthony Nash <nash.ant@gmail.com>
|
||||
Date: Wed, 20 Apr 2011 15:58:16 +0100
|
||||
Subject: [PATCH] Remove port, updater and browser fields
|
||||
|
||||
---
|
||||
app/views/config/index.html | 19 -------------------
|
||||
1 files changed, 0 insertions(+), 19 deletions(-)
|
||||
|
||||
diff --git a/app/views/config/index.html b/app/views/config/index.html
|
||||
index 8fe9f06..58b1656 100644
|
||||
--- a/app/views/config/index.html
|
||||
+++ b/app/views/config/index.html
|
||||
@@ -20,10 +20,6 @@
|
||||
<input type="text" name="global.host" value="${config.get('global', 'host')}" class="textInput large"/>
|
||||
</div>
|
||||
<div class="ctrlHolder">
|
||||
- <label>Port</label>
|
||||
- <input type="text" name="global.port" value="${config.get('global', 'port')}" class="textInput large"/>
|
||||
- </div>
|
||||
- <div class="ctrlHolder">
|
||||
<label>Username</label>
|
||||
<input type="text" name="global.username" value="${config.get('global', 'username')}" autocomplete="off" class="textInput large"/>
|
||||
</div>
|
||||
@@ -31,21 +27,6 @@
|
||||
<label>Password</label>
|
||||
<input type="password" name="global.password" value="${config.get('global', 'password')}" autocomplete="off" class="textInput large"/>
|
||||
</div>
|
||||
- <div class="ctrlHolder">
|
||||
- <label>Launch browser</label>
|
||||
- <input type="checkbox" name="global.launchbrowser" value="True" ${' checked="checked"' if config.get('global', 'launchbrowser') else ''} />
|
||||
- </div>
|
||||
- <div class="ctrlHolder checkbox">
|
||||
- <label>Use updater</label>
|
||||
- <% hasGit = updater.hasGit() %>
|
||||
- <input type="checkbox" name="global.updater" value="True" ${' checked="checked"' if config.get('global', 'updater') and not hasGit else ''} ${' disabled="disabled"' if hasGit else ''} />
|
||||
- % if hasGit:
|
||||
- <p class="formHint">
|
||||
- To enable the CouchPotato Updater, remove the ".git" folder.
|
||||
- Otherwise use "git pull".
|
||||
- </p>
|
||||
- % endif
|
||||
- </div>
|
||||
</fieldset>
|
||||
<fieldset class="inlineLabels">
|
||||
<h3>Search</h3>
|
||||
--
|
||||
1.7.4.4
|
||||
|
@ -0,0 +1,31 @@
|
||||
From a2196e61c14dd0437754406d007ae6e8273eb9a6 Mon Sep 17 00:00:00 2001
|
||||
From: Anthony Nash <nash.ant@gmail.com>
|
||||
Date: Wed, 20 Apr 2011 16:00:07 +0100
|
||||
Subject: [PATCH 2/2] Set defaults
|
||||
|
||||
---
|
||||
app/config/configApp.py | 6 +++---
|
||||
1 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/app/config/configApp.py b/app/config/configApp.py
|
||||
index fb0e2d0..8247df6 100644
|
||||
--- a/app/config/configApp.py
|
||||
+++ b/app/config/configApp.py
|
||||
@@ -39,11 +39,11 @@ class configApp():
|
||||
self.addSection('global')
|
||||
self.setDefault('global', 'server.environment', 'production')
|
||||
self.setDefault('global', 'host', '0.0.0.0')
|
||||
- self.setDefault('global', 'port', 5000)
|
||||
+ self.setDefault('global', 'port', 8083)
|
||||
self.setDefault('global', 'username', '')
|
||||
self.setDefault('global', 'password', '')
|
||||
- self.setDefault('global', 'launchbrowser', True)
|
||||
- self.setDefault('global', 'updater', True)
|
||||
+ self.setDefault('global', 'launchbrowser', False)
|
||||
+ self.setDefault('global', 'updater', False)
|
||||
self.setDefault('global', 'git', 'git')
|
||||
self.setDefault('global', 'urlBase', '')
|
||||
self.setDefault('global', 'ignoreWords', '')
|
||||
--
|
||||
1.7.4.4
|
||||
|
@ -0,0 +1,26 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
import sys
|
||||
import xbmcaddon
|
||||
import os
|
||||
|
||||
if ( __name__ == "__main__" ):
|
||||
os.system("sh start.sh")
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<strings>
|
||||
|
||||
<!-- CouchPotato -->
|
||||
<string id="1000">CouchPotato</string>
|
||||
<string id="1010">Gebruikers instellingen</string>
|
||||
<string id="1021">Gebruik verificatie</string>
|
||||
<string id="1022">Gebruikersnaam</string>
|
||||
<string id="1023">Wachtwoord</string>
|
||||
<string id="2010">Netwerk instellingen</string>
|
||||
<string id="2021">Toegestane IP adressen</string>
|
||||
|
||||
</strings>
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<strings>
|
||||
|
||||
<!-- CouchPotato -->
|
||||
<string id="1000">CouchPotato</string>
|
||||
<string id="1010">User Settings</string>
|
||||
<string id="1021">Use authentification</string>
|
||||
<string id="1022">Username</string>
|
||||
<string id="1023">Password</string>
|
||||
<string id="2010">Network Settings</string>
|
||||
<string id="2021">Allowed IP addresses</string>
|
||||
|
||||
</strings>
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<strings>
|
||||
|
||||
<!-- CouchPotato -->
|
||||
<string id="1000">CouchPotato</string>
|
||||
<string id="1010">Préférences utilisateur</string>
|
||||
<string id="1021">Utiliser une authentification</string>
|
||||
<string id="1022">Nom d'utilisateur</string>
|
||||
<string id="1023">Mot de passe</string>
|
||||
<string id="2010">Préférences réseau</string>
|
||||
<string id="2021">Adresses IP autorisées</string>
|
||||
|
||||
</strings>
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<strings>
|
||||
|
||||
<!-- CouchPotato -->
|
||||
<string id="1000">CouchPotato</string>
|
||||
<string id="1010">Benutzer Einstellungen</string>
|
||||
<string id="1021">Authentifizierung verwenden</string>
|
||||
<string id="1022">Benutzername</string>
|
||||
<string id="1023">Passwort</string>
|
||||
<string id="2010">Netzwerk Einstellungen</string>
|
||||
<string id="2021">Erlaubte IP Adressen</string>
|
||||
|
||||
</strings>
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<strings>
|
||||
|
||||
<!-- CouchPotato -->
|
||||
<string id="1000">CouchPotato</string>
|
||||
<string id="1010">Bruker Instillinger</string>
|
||||
<string id="1021">Bruk inlogging</string>
|
||||
<string id="1022">Brukernavn</string>
|
||||
<string id="1023">Passord</string>
|
||||
<string id="2010">Nettverksinstillinger</string>
|
||||
<string id="2021">Tilatte IP addresser</string>
|
||||
|
||||
</strings>
|
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<settings>
|
||||
|
||||
<!-- CouchPotato -->
|
||||
<category label="1000">
|
||||
<setting label="1010" type="lsep"/>
|
||||
<setting type="sep" />
|
||||
<setting id="COUCHPOTATO_AUTH" type="bool" label="1021" default="false" />
|
||||
<setting id="COUCHPOTATO_USER" type="text" label="1022" default="openelec" enable="eq(-1,true)"/>
|
||||
<setting id="COUCHPOTATO_PWD" type="text" label="1023" default="openelec" enable="eq(-2,true)"/>
|
||||
|
||||
<setting label="2010" type="lsep"/>
|
||||
<setting type="sep" />
|
||||
<setting id="COUCHPOTATO_IP" type="text" label="2021" default="0.0.0.0"/>
|
||||
</category>
|
||||
</settings>
|
11
packages/addons/downloadmanager/CouchPotato/source/start.sh
Normal file
11
packages/addons/downloadmanager/CouchPotato/source/start.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
COUCHPOTATO_HOME="$HOME/.xbmc/userdata/addon_data/addon.downloadmanager.CouchPotato"
|
||||
COUCHPOTATO_SETTINGS="$COUCHPOTATO_HOME/settings.xml"
|
||||
|
||||
mkdir -p /var/run
|
||||
mkdir -p $COUCHPOTATO_HOME
|
||||
|
||||
python ./CouchPotato/CouchPotato.py -d \
|
||||
--pidfile=/var/run/couchpotato.pid \
|
||||
--datadir $COUCHPOTATO_HOME
|
Loading…
x
Reference in New Issue
Block a user