mediatap

Crates.iomediatap
lib.rsmediatap
version0.1.0
sourcesrc
created_at2021-02-14 12:12:52.858787
updated_at2021-02-14 12:12:52.858787
descriptionA CLI for automating German public-broadcasting TV-show subscriptions
homepagehttps://github.com/sphinxc0re/mediatap
repositoryhttps://github.com/sphinxc0re/mediatap
max_upload_size
id355045
size96,892
Julian Laubstein (sphinxc0re)

documentation

README

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.

Commit count: 23

cargo fmt