#INSTALL STEPS FOR LAZY
Lazy is designed to run under a user called media (this could be changed but not tested).
- Create a new user on your os called media with the home directory of /home/media
Execute the following on server
$ sudo apt-get install git python-pip unrar python-dev libpython-dev python-pycurl python-sqlite curl libjpeg-dev libcurl4-openssl-dev python-mysqldb
Flexget will watch the FTP site for new releases. It will tell lazy about any releases which meets certain criteria.
-
Install Flexget
$ sudo pip install flexget
-
Copy folder flexget-conf from git and rename it to /home/media/.flexget
-
Edit the below files as required
$ /home/media/.flexget/config.yml $ /home/media/.flexget/config-xvid.yml
$ mkdir -p /data/Videos/Movies
$ mkdir -p /data/Videos/TVShows
$ mkdir -p /data/Videos/_incoming/TVShows
$ mkdir -p /data/Videos/_incoming/Requests
$ mkdir -p /data/Videos/_incoming/Movies
-
Import Lazy_client from Git
$ git clone https://github.com/stevezau/lazy_client.git /home/media/lazy
-
Setup requirements for lazy
$ sudo pip install -U -r /home/media/lazy/requirements.txt
-
!!IMPORTANT!! Copy lazysettings.py.example to lazysettings.py and edit the settings
-
Initial setup
$ ./lazy.sh setup
-
Start service
$ ./lazy.sh start
Add the following cron jobs
$ */15 * * * * /usr/local/bin/flexget -c /home/media/.flexget/config-xvid.yml execute --cron
$ */15 * * * * /usr/local/bin/flexget execute --cron --disable-tracking
$ */5 * * * * /home/media/lazy/lazy.sh check
Thats it.. go to http://serverip:8000