Subscribe to TV series to be informed when a new episode is released
Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
series_watcher
.gitignore
README.md
requirements.txt

README.md

Series-Watcher

About

Subscribe to TV series to be informed when a new episode is released.

This project has been initiated on February 8, 2014.

It is a Django web application, which includes a manage.py command to crawl the http://stream-tv.me/ website.

Setup

How to start the web interface

# Clone the repository
git clone https://github.com/Afnarel/Series-Watcher.git

# Enter the project directory
cd Series-Watcher

# Use pip to install the dependencies
pip2 install -r requirements.txt

# Enter the subdirectory
cd series_watcher

# Edit the database settings in series_watcher/settings/base.py
# to set a correct absolute path to the SQLite database

# Create the database
python2 manage.py syncdb --settings=series_watcher.settings.production

Then, use whatever server you want:

  • Using the Django development server (not suitable for production): python manage.py runserver
  • Using gunicorn (you will need to serve static files separately): gunicorn_django /path/to/series_watcher/settings.py

How to create and update the database

You can create/update manually the database using python manage.py populate

You can also use cron to update it every hour: edit series-watcher-cron.sh to set the VIRTUALENV to your own virtualenv. Then, symlink this script into /etc/cron.hourly/ : ln -s series-watcher-cron.sh /etc/cron.hourly. If this does not work, run crontab -e (as root) and add the following at the end:

SHELL=/bin/bash
@hourly /etc/cron.hourly/series-watcher-cron.sh

Make sure that the cron daemon is running. On ArchLinux with systemctl (replace 'cronie' with 'dcron' if needed):

  • systemctl is-active cronie to check if it is running
  • systemctl start cronie to start it during this session
  • systemctl enable cronie to start it automatically at each boot
  • systemctl is-enabled cronie to check if it is enabled

On Ubuntu:

  • sudo service cron start to start cron (it is already started at boot)

Author

François CHAPUIS - Afnarel

License

This project is distributed under the terms of the Creative Commons CC-BY-SA license

Contributing

This is more a tool developed selfishly for my own usage than an actual community project. Still, if you wish to contribute some code, you are welcome to submit pull requests.