c5cae5ab9bb98be3a4d8e82168f221ac9fe10d90
This is my approach on working with Eden, maybe a little late since Frodo is almost released, but better late then never. - First detect the JSON-RPC version XBMC is running (once per boot of CouchPotatoServer on the first notification, except for sending test message then the JSON version is always checked). - Set a variable indicating whether or not to use JSON (or normal http). - If JSON should be used, proceed as before this commit. - If normal-http should be used, use 'notifyXBMCnoJSON' func - 'notifyXBMCnoJSON' just opens a specific XBMC api url, unfortunately importing urllib for this was necessary to escape the message strings. TODO: support multiple XBMC hosts, right now the last host in the hosts array will set the 'useJSONnotifications' var. Conflicts: couchpotato/core/notifications/xbmc/main.py Conflicts: couchpotato/core/notifications/xbmc/main.py
CouchPotato Server
CouchPotato (CP) is an automatic NZB and torrent downloader. You can keep a "movies I want"-list and it will search for NZBs/torrents of these movies every X hours. Once a movie is found, it will send it to SABnzbd or download the torrent to a specified directory.
Running from Source
CouchPotatoServer can be run from source. This will use git as updater, so make sure that is installed also.
Windows, see the CP forum for more details:
- Install Python 2.7
- Then install PyWin32 2.7 and GIT
- If you come and ask on the forums 'why directory selection no work?', I will kill a kitten, also this is because you need PyWin32
- Open up
Git Bash(or CMD) and go to the folder you want to install CP. Something like Program Files. - Run
git clone https://github.com/RuudBurger/CouchPotatoServer.git. - You can now start CP via
CouchPotatoServer\CouchPotato.pyto start - Your browser should open up, but if it doesn't go to:
http://localhost:5050/
OSx:
- If you're on Leopard (10.5) install Python 2.6+: Python 2.6.5
- Install GIT
- Open up
Terminal - Go to your App folder
cd /Applications - Run
git clone https://github.com/RuudBurger/CouchPotatoServer.git - Then do
python CouchPotatoServer/CouchPotato.py - Your browser should open up, but if it doesn't go to:
http://localhost:5050/
Linux (ubuntu / debian):
- Install GIT with
apt-get install git-core - 'cd' to the folder of your choosing.
- Run
git clone https://github.com/RuudBurger/CouchPotatoServer.git - Then do
python CouchPotatoServer/CouchPotato.pyto start - To run on boot copy the init script.
sudo cp CouchPotatoServer/init/ubuntu /etc/init.d/couchpotato - Change the paths inside the init script.
sudo nano /etc/init.d/couchpotato - Make it executable.
sudo chmod +x /etc/init.d/couchpotato - Add it to defaults.
sudo update-rc.d couchpotato defaults - Open your browser and go to:
http://localhost:5050/
Description
Languages
Python
91.1%
JavaScript
7%
CSS
1.5%
HTML
0.2%
Shell
0.2%