Skip to content

pums974/downloadboob

Repository files navigation

downloadboob

This script can be used to automatically download videos matching some criteria.

Purpose

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

Dependencies

  • Mandatory
    • Linux
    • python2
    • weboob
  • Optionnal
    • curl or wget
    • ffmpeg or avconv
    • rtmpdump
    • mimms

Installation

  • Put the script wherever you want
  • Fill at least one of those configuration file :
    • /etc/downloadboob.conf
    • ~/downloadboob.conf
    • ./downloadboob.conf

Parameters

The main parameters are

ParameterType Default valueMeaning
directoryString None Path to the root directory e.g. ~/Podcasts
live BooleanFalse - 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 BooleanFalse Do you want to integrate your library in kodi (formerly XBMC) ?
backend_directoryString~/.local/share/weboob/modules/1.0/ Path to the weboob modules.

For each entry the parameters are

Parameter Type Default valueMeaning
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_excludeString None If present, the video title and description must not satisfy this regexp
author_regexpString 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 IntegerNone If present, only look in the first max_results elements of the list

Future

  • Refactorization
  • Rss ?
  • Podcasts ?
  • thumbnail

About

This script can be used to automatically download videos matching some criteria.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages