Please note that this project is not affiliated, associated, authorized or endorsed by the University of Regensburg. It's a private project some of us did for fun in our free time and hope others will like it :)
This repository contains scripts to download assets from the UR mediathek.
If you have suggestions or found bugs, feel free to open an issue or create a pull request!
- Install Python
- Install the
requests
package usingpip install requests
- Install ffmpeg
You need to create a credentials.json
file in this directory with the following content:
{
"username": "vip12345",
"password": "correcthorsebatterystaple"
}
Well, replace the entries with your own login information.
Tip: Restrict the read permissions to the credentials.json
file, e.g. on linux: chmod 600 credentials.json
Downloads a video file from the UR Medithek.
Using you browser, navigate to the video in the mediathek. Copy the full URL (should begin with https://mediathek2.uni-regensburg.de/playthis/
). Then, run
python3 video.py <COPIED_URL>
The video file will be downloaded and saved in the current working directory.
Use python3 video.py --help
to show more options.
Downloads an audio file from the mediathek and stores it in the current directory.
Using you browser, navigate to the video in the mediathek. Copy the full URL (should begin with https://mediathek2.uni-regensburg.de/playthis/
). Then, run
python3 audio.py <COPIED_URL>
Use python3 audio.py --help
to show more options.
The GUI provides a simpler interface than the CLI to download any video from the mediathek that you have access to.
In addition to the mentioned requirements, you also need to install the PyQt5
package using pip install PyQt5
You can run the GUI using python3 gui.py
Run make
or pyinstaller gui.py -F --name ur-downloader
.
- Use a proper python package structure
- Include ffmpeg somehow