This script can be used to automatically download videos matching some criteria.
For each entry in the configuration file, the script :
- update backends
- install necessary backends
- check for new videos
- download the new videos
- Store the video in root_directory/entry_directory/video.name.avi
To avoid to download a video twice, all videos are stored in root_directory/.files/backend_name/video.id.avi. The contents of root_directory/entry_directory/ will be links to those file.
If kodi is asked then
- the video files will be prefixed with "S00E00 - "
- a file.nfo is generated along the video file
- a file tvshow.nfo is generated
- links are replaced by the actual video file (kodi doesn't like links)
- files in root_directory/.files/backend_name/ are empty files used to not download a video twice
- Mandatory
- Linux
- python2
- weboob
- Optionnal
- curl or wget
- ffmpeg or avconv
- rtmpdump
- mimms
- Put the script wherever you want
- Fill at least one of those configuration file :
- /etc/downloadboob.conf
- ~/downloadboob.conf
- ./downloadboob.conf
The main parameters are
Parameter | Type | Default value | Meaning |
---|---|---|---|
directory | String | None | Path to the root directory e.g. ~/Podcasts |
live | Boolean | False | - If set to True, it will generate m3u files in order to whatch the online content |
- If set to False, it will download the online content and eventually convert the m3u files in video files. | |||
kodi | Boolean | False | Do you want to integrate your library in kodi (formerly XBMC) ? |
backend_directory | String | ~/.local/share/weboob/modules/1.0/ | Path to the weboob modules. |
For each entry the parameters are
Parameter | Type | Default value | Meaning |
---|---|---|---|
action | String | search | How to list available videos. Equivalent of videoob action pattern. Can be "search" or "ls" |
backend | String | None | Name of the backend to be interogated. |
pattern | String | None | What are you looking for ? |
directory | String | None | directory where the videos will be available (relative to root directory) |
title_regexp | String | None | If present, the video title have to satisfy this regexp |
title_exclude | String | None | If present, the video title and description must not satisfy this regexp |
author_regexp | String | None | If present, the video author have to satisfy this regexp |
id_regexp | String | None | If present, the video id have to satisfy this regexp |
max_results | Integer | None | If present, only look in the first max_results elements of the list |
- Refactorization
- Rss ?
- Podcasts ?
- thumbnail