Tuesday, 10 February 2015

SickRage

For some reasons I decided to install SickRage on OpenElec by myself.
There are few main advantage for me ... but disadvantage for sure is that I have to update package on my own.

Here is procedure of updating... (its little bit problematic I would admit ;) )

First stop SickRage, tar all the files
tar cvf /tmp/sick.tar /storage/HTPC/SickRage/

and copy to my laptop

on my laptop I have to cancel all my local changes (will get back to that in few)...
git stash save --keep-index
git stash drop
Then pull all the changes
git pull


And tar + copy back to HTPC

Here we need to do few changes so it works fine in Openelec.

we need to edit SickBeard.py file and add (just below import lines) :
import os 
sys.path.append(os.path.join(".", 'pylib'))

We need to make sure that in pylib directory we have Cheetah python module (its depedency).


Also in autostart I added link to file script.AutoSickRage.sh

#!/bin/bash
dir="/storage/HTPC/SickRage/"
script="SickBeard.py"
name="sick"

cd $dir
screen -S $name -d -m python $script


It starts screen session (you have to install screen module first) and starts SickRage.

After that we're done... we can start script  script.AutoSickRage.sh.

This is note mainly for me - I suggest using ready to use modules on OpenElec repository :) (audo is the name afair)