How to install yle-dl on OSMC Linux

Yle Areena is a really great free streaming site run by the Finnish goverment funded media house Yleisradio. It has a Netflix-like browser interface.

I am using a Home Theater PC (HTPC) called Vero 4K to watch content. It is running the OSMC Linux distro with Kodi as the interface. However, this guide should work on anything running OSMC, for example a Raspberry Pi.

Lately, Yle changed their API, making the yle-areena Kodi plugin obsolete.

After that I have been using yle-dl by Antti Ajanki to download and watch movies.
It's a bit of a hassle to use. Compared to just using the Areena plugin, you have to first download the content on the command line and then find it on Kodi and play it. But it works well enough.

Keep in mind, this is all legal according to Finnish law. Yle Areena is a legal streaming site and you can make recordings for your own use.

So, here's how to get yle-dl running on OSMC. 

Connect to the OSMC device with an SSH terminal program like PuTTY.

Update the package lists and install the necessary dependencies:
sudo apt-get update
sudo apt-get install python3-pip python3-setuptools 
sudo apt-get install libxml2-dev libxslt1-dev
pip3 install wheel
sudo apt-get install python3-dev python3-lxml ffmpeg

Then, install yle-dl:
pip3 install --user --upgrade yle-dl

After that, you want to either add the installation directory to PATH or create a symbolic link to yle-dl like this:
ln -s /home/osmc/.local/bin/yle-dl /usr/local/yle-dl

Finally, you can use yle-dl like this:
yle-dl https://areena.yle.fi/1-12345678 -o filename.mkv

I recommend always specifying the output filename, as yle-dl seems to often fail due to the impossible filenames it tries to create.

After you have downloaded something, find it on Kodi from the files section.
I find it useless to scan the content in this case, as I mostly delete the content immediately.

I successfully used yle-dl to download a movie stream on the internal storage of the Vero 4K.
It's not the fastest, and there is only 14GB free space.
I would recommend using some other medium than the internal storage in the long run.
But the internal storage will work in an emergency.

Have fun!

Comments

Popular posts from this blog

How to fix the weird audio bug in Kingdom Come: Deliverance

How to install and play Curse of Monkey Island on Android

How to get rid of coil whine just by tweaking BIOS

Minecraft recv failed error... fixed!

Where does uTorrent keep its .torrent files?

Stop the CxUiUSvc service from eating your RAM