luk27official / ivysilani-mpd-extractor

Extract .mpd files from iVysilani
MIT License
1 stars 1 forks source link
ceskatelevize ivysilani

iVysilani MPD extractor

Czech disclaimer: V případě problému prosím založte issue, pro běh skriptu stačí nainstalovat Selenium packge a skript pustit.

This program extracts the .mpd file from a given iVysilani (ceskatelevize.cz) URL using Selenium. This .mpd file then may be used to download the video via various tools.

Feel free to open an issue or create a PR.

Install

Install Python and install Selenium Python package, either by pip install selenium or run pip install -r requirements.txt

Usage

Run python extract.py.

There are three optional arguments:

The .mpd link might be used in various tools enabling video downloads from the manifest files, e.g. yt-dlp or VLC. For yt-dlp, just run yt-dlp <mpd_URL>.

Troubleshooting

If the MPD list is empty, try changing the waiting times and/or the CDN link (the current one can be found in the Networks tab in developer console). Also, for some series or movies, the --no-headless flag must be provided, otherwise it is not possible to get the .mpd.

If there are any issues with elements, try changing the XPath or CSS selectors.

If you are not a developer or the problem is not listed here, please let me know what the problem is and open an issue.