#german #download #subscription #automating #database #tv-show #public-broadcasting

app mediatap

A CLI for automating German public-broadcasting TV-show subscriptions

1 unstable release

0.1.0 Feb 14, 2021

#258 in Multimedia

GPL-3.0-only

31KB
502 lines

mediatap

A command line tool to automate downloading TV-shows/movies from online media plattforms of German public broadcasting (e.g. ARD, ZDF, WDR, etc...).

Installation

Right now, there sadly is no user-friendly way of installing mediatap. You'll need to install Rust (https://www.rust-lang.org/learn/get-started) and install mediatap via cargo, Rust's package manager and build tool. Since mediatap relies on SQLite, you also need to install the required runtime and development libraries.

cargo install mediatap

Development

Prerequisites

The following tools need to be installed:

  • Rust (using rustup if possible)
  • The diesel CLI => cargo install diesel_cli

Database migrations

Since mediatap is using SQLite as a database backend, you have to supply the path to the database file each time you make a migration with the diesel CLI. The following command simplifies this task massively:

diesel migration run --database-url "$(cargo run -- emit-database-path)"

Notice that the emit-database-path subcommand is not available in release mode.

Acknowledgements

This project heavily relies on and would not be possible without the great work by the people at https://mediathekview.de/. Big thanks to all the contributors who made this project possible.

Dependencies

~37–52MB
~1M SLoC