Downloads series and movies from German public media libraries (Öffentlich-Rechtliche Sender) to your Synology NAS, for use with Synology Video Station.
Project description
mediathekDownloader
Summary
Downloads series and movies from German public media libraries (Öffentlich-Rechtliche Sender) to your Synology NAS, for use with Synology Video Station. It works from the command line and should be used from scripts.
How to use
Using the search string
-
Go to https://mediathekviewweb.de and search for your download.
Example:
!ARD #Maus >10
to search for all episodes of "Die Sendung mit der Maus" at station "ARD" that are longer than 10 minutes (they provide a lot of short cuts for each episode, which is not really helpful if you want to retrieve an episode as broadcasted each Sunday morning).
Command line
$:>python -m mediathekDwnld -h
Usage: mediathekDwnld.py [OPTIONS] PATH
The app allows to retrieve videos from German, Austrian and Suisse TV
station media libraries ("Mediathek"). Central accesspoint to these
resources is https://mediathekviewweb.de/. Either the search string used
there or the provided RSS-feed passed to the script using options
--search or --feed. Idea is to write the file to a Synology NAS with DS
Video app installed. This is why a .vsmeta file is being generated with
the media, to feed Synology's indexer.
Options:
-f, --feed TEXT Specify either the feed URL (RSS) or the search
string from mediathekviewweb.
-s, --search TEXT Specify either the feed URL (RSS) or the search
string from mediathekviewweb.
-p, --threads INTEGER The app supports multithreading. How many threads
should be started? [default: 1]
-m, --maxfiles INTEGER When collecting a search result, several larger
files might be downloaded. Here, specify max=0 to
download all, or the maximum number to download.
[default: 8]
-v, --verbous Print program output at lowest level. [default:
False]
-V, --veryverbous Print program output at lowest level plus feed
items. [default: False]
-t, --test Do not really download or write files. [default:
False]
-S, --series First option to set the media type: use it when
downloading episodes of a series.
-M, --movie Second option to set the media type: use it when
downloading movies.
-h, --help Show this message and exit.
Example script
#!/bin/sh
#encoding: utf8
#go to the work directory
cd /volumeX/[path]
#Download using the venv
bin/python3 cleanup-generic.py /volume1/video/Kinder/Löwenzahn "https://mediathekviewweb.de/feed?query=%23L%C3%B6wenzahn%20%20%3E20"
#Index neu aufbauen
/usr/syno/bin/synoindex -R /volume1/video/Kinder/Löwenzahn &
#/usr/syno/bin/synoindex -R /volume1/video/Kinder/Maus &
#/usr/syno/bin/synoindex -R /volume1/video/Kinder/MausSpezial/ &
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mediathekDownloader-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceb2fca93ed07ba6c3c6f1005a2c3bcb1f59e6a814f27357f6f80675d190fd43 |
|
MD5 | d6e002176a0599aa97cd761cf95b0721 |
|
BLAKE2b-256 | a01aad2d9f44cd95f64c0f6f524abc08f694046d9f21c8f3ec2391d6d5938977 |
Hashes for mediathekDownloader-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50eeb18c89c7dc3bec989597dd860d61105edee8fd162d52d2318b6d256a8d2c |
|
MD5 | 6d953375a07e615928786967f415879c |
|
BLAKE2b-256 | 58677b5a534b978ef7bc69e5a0d0b583f4a9a187cccec573347eab9c84f7ec73 |