Skip to content

Latest commit

 

History

History
117 lines (66 loc) · 4.36 KB

README.md

File metadata and controls

117 lines (66 loc) · 4.36 KB

📺 ruv-dl

Python License: MIT Release

Download media content from ruv.is

ruv-dl is a simple Python command-line tool to download media content from RÚV.

✨ Features

🔹 FFmpeg wrapper to download TV and radio programs from ruv.is given a provided URL

🔹 Optionally include metadata that is used by RÚV, such as images, text description and subtitle files

🔹 Choose between resolutions offered by RÚV and file formats supported by FFmpeg

ruv-dl download

⚡️ Installation

Clone the repository to install ruv-dl:

$ git clone https://github.com/thrkll/ruv-dl

Install dependencies:

$ pip install -r requirements.txt

⚙️ Requirements

Python 3.6+

FFmpeg in path

📖 Usage

Basic download

Find the link to whatever it is you want to waste your time on and paste the URL after the input argument -i.

$ python ruv-dl.py -i https://ruv.is/sjonvarp/spila/sample/30726/950qj1

Resolution

By default, ruv-dl will download the mediafile at the best resolution offered by RÚV - 3600kbps at 1920x1080 (25fps). To download at a worse resolution, use the -r argument. 1 is best, 3 is worst.

$ python ruv-dl.py -i https://ruv.is/sjonvarp/spila/sample/30726/950qj1 -r 2

Folder structure

If you are fancy 🎩 - make sure to include the -f argument. This will bundle the media file in a fancy folder together with all images and text description provided by RÚV.

$ python ruv-dl.py -i https://ruv.is/sjonvarp/spila/sample/30726/950qj1 -f

Subtitles

Most video content on ruv.is comes with Icelandic 🇮🇸 subtitles. ruv-dl will attempt to download these files and convert them to .srt files. To include them in the download, use the -s argument.

$ python ruv-dl.py -i https://ruv.is/sjonvarp/spila/sample/30726/950qj1 -f -s

Filetypes

By default, all files will download as .mp4. But for the true snob, ruv-dl can use any file format supported by FFmpeg. Use the -t argument to specify the format.

$ python ruv-dl.py -i https://ruv.is/sjonvarp/spila/sample/30726/950qj1 -t mkv

Different FFmpeg location

In the optimal setup, FFMpeg will be available in the $PATH. Alternatively you can specify the location of the FFmpeg installation folder using the -l argument.

$ python ruv-dl.py -i https://ruv.is/sjonvarp/spila/sample/30726/950qj1 -l C:/ffmpeg/

Note that depending on your FFmpeg build, you might need to link to ../ffmpeg/bin.

Help

When you eventually forget everything you've read here, you can use the --help argument.

Help argument

⚒️ Project assistance

Please raise an issue if you have a feature request or run into trouble (not unlikely given frequent changes at ruv.is.) Feel free to contribute and make pull requests. Mark the project with a star ⭐ if you like it.

🚚 Versions

📦 2.1.0 - 2023 02 - Complete refactoring, new features added

📦 2.0.0 - 2023 01 - CLI version of ruv-dl with argparse

📦 1.0.0 - 2019 09 - Initial release

⚠️ Licence

MIT License

Copyright (c) 2023 Þorkell Einarsson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.