stov is a program which allows you to subscribe to channels, playlists and search results on youtube and several other video sites.

Helmut Pozimski bf6622ced4 youtubedl-wrapper: Only put subprocess call in try block %!s(int64=3) %!d(string=hai) anos
debian 82be673689 update changelogs for the 1.2.1 release %!s(int64=6) %!d(string=hai) anos
doc 82be673689 update changelogs for the 1.2.1 release %!s(int64=6) %!d(string=hai) anos
lib_stov bf6622ced4 youtubedl-wrapper: Only put subprocess call in try block %!s(int64=3) %!d(string=hai) anos
locale 6b842f7ffc update localization files %!s(int64=7) %!d(string=hai) anos
CHANGELOG 82be673689 update changelogs for the 1.2.1 release %!s(int64=6) %!d(string=hai) anos
LICENSE c336f943b2 Initial commit %!s(int64=12) %!d(string=hai) anos
MANIFEST.in 79c1af678f Finalize man page and debian rules for generation, release 0.6 %!s(int64=11) %!d(string=hai) anos
README.md a22a7d6170 remove references to vid.me from README.md %!s(int64=6) %!d(string=hai) anos
setup.py 82be673689 update changelogs for the 1.2.1 release %!s(int64=6) %!d(string=hai) anos
stov 705df10050 move main functionality to main module %!s(int64=7) %!d(string=hai) anos

README.md

ABOUT

stov is a program which allows you to subscribe to channels, playlists and search results on youtube, ZDF Mediathek, twitch.tv and vid.me. You don't need an account on these sites for the program to work since it retrieves the needed data using youtube-dl. You can for example run it as a cron job to automatically download your favourite videos.

USAGE

see ./stov --help

DEPENDENCIES

stov depends on the following software to be installed:

  • Python 3.2 or higher
  • youtube-dl (get it from http://rg3.github.com/youtube-dl/ if you don't have it yet, it is needed to download videos and retrieve information about them from youtube)
  • lxml module for python
  • ffmpeg is highly recommended since youtube-dl uses it to assemble and repair video files

COPYING

see LICENSE

CONFIGURATION

By default, the configuration is defined in ~/stov/stov.json in the json format. A default config file is created for you when you run the program for the first time. The following parameters are currently available which you can alter manually:

  • mailto: Recipient address used for notitifications
  • mailfrom: Sender address used for notifications
  • mailhost: Host name or ip address of the mail server which is used to send notifications
  • auth_needed: Define if the smtp server need authentication (yes or no)
  • user_name: User name to use for smtp authentication if defined
  • password: Password to use for SMTP authentication
  • youtube-dl: Path to the youtube-dl binary if not found automatically
  • downloaddir: Path the downloaded videos are saved into
  • database: File name to use for the database
  • smtpport: Port used to connect to the mail server
  • maxvideos: Maximum number of videos to retrieve from the youtube API for each subscription, default 25, maximum 50, reduce this parameter for better parsing performance
  • notify: Define if you want to be notified via email about new episodes of your subscriptions, valid values: yes or no
  • db_version: Database version (Do not change!)
  • config_version: Configuration version (Do not change!)
  • videocodec: Video codec used for downloaded videos (valid values: mp4, webm or flv)
  • maxresolution: Maximum resolution to use for downloaded videos, please note that not all codecs and resolutions might be available so a lower resolution or other codec might be used in these cases
  • maxfails: Number of times the download of a video may fail until it is marked as failed and won't be tried again
  • check_title: Define if stov should check the title of each video in a search or channel with search string subscription. This works around some deficits of the youtube API which sometimes also returns video completely unrelated to your search. Videos whose titles don't match the search string will be entirely ignored. valid values: yes or no

Sites

The following sites are currently supported:

  • Youtube
  • ZDF Mediathek
  • Twitch.tv

Youtube

For this site, all features are supported, you can subscribe to users, channels (via channel ID), global searches or playlists.

ZDF Mediathek

Only the "channel" subscription type is supported with an optional string to search for in the video title. The string you put in as the channel name will be used to select broadcasts from all of the available ones to download. Since many broadcasts are removed from the Mediathek after 7 days, you should run stov at least weekly to catch all broadcasts.

Twitch.tv

This site only supports the "channel" subscription type. You can select videos from a channel by adding an optional "search" parameter.

KNOWN ISSUES

Currently none, contact me if you find any.

INSTALLATION

You can just run the main file "stov" directly from this directory by calling it from the shell or with the python interpreter ("./stov" or "python3 stov"). Furthermore, stov uses python distutils as default installation method. Just run "python setup.py install" to install it into your system. For further information an options run "python setup.py --help".