sboehringer / mediathek

Automatically download youtube channels and programming from public German TV stations
GNU Lesser General Public License v2.1
16 stars 2 forks source link

Feature Request: Pull video in HD #3

Open meinnamehier opened 8 years ago

meinnamehier commented 8 years ago

When a higher resolution video is available, it should be pulled E.g. http://www.arte.tv/guide/de/056821-002-A/360-geo-reportage was not pulled in HD, but it is available in HD. Or better yet: Make the resolution an option, such as --resolution highest or so

sboehringer commented 8 years ago

I tried to implement the feature. This script relies on information from the ZDFmediathek project. The raw database pulled from said project can be found in

 ~/.local/share/applications/mediathek/database-json.xz

If you can figure out a way to reliably extract (working) HD-urls in case they are given, I would be happy to implement the feature. Back when I tried the urls in the file often did not work.

meinnamehier commented 8 years ago

I gues that is a little out of my league, but there maybe https://github.com/iNaD can help. He wrote download hosts for Synology DSM which work mostly. If i get around to it, I will contact him (or you can, if you wish.)

Hinterwaeldlers commented 6 years ago

Using the pull request https://github.com/sboehringer/mediathek/pull/11 as base allows to implement this feature.

Using this part as base, it should be possible, to do the following: --highest --lowest --medium So it's free to the user, to select which variant to use. Sadly I've not found the part yet, where such a part could be appended to. Sadly I am not familiar with perl, so feel free to adept those changes within the pull request to implement this feature

sboehringer commented 6 years ago

Thank you for the pull request. I have that parses raw input into the parse.pl tools. Could you move that code over? Then I will merge and also implement a way to select the appropriate field.

Hinterwaeldlers commented 6 years ago

Sorry but I am not sure, which file is meant. The main change was done in parse-videolist-json.pl and I don't see parse.pl file, so not sure, if the file already fits. Otherwise, please let me know and I can adept the change accordingly