aajanki / yle-dl

Download videos from Yle servers
https://aajanki.github.io/yle-dl/index-en.html
GNU General Public License v3.0
309 stars 52 forks source link

Authenticating via Yle Tunnus #237

Open codeclown opened 4 years ago

codeclown commented 4 years ago

Since last year (?) Yle has made it possible to watch Areena-videos from abroad as long as you're inside the EU, due to related EU legislation if I recall correctly.

But this requires logging in to an Yle Tunnus -account that has been verified to be Finnish.

I've set up this authorization on my account, and tried to find a way to download a video that requires this type of authentication, but wasn't able to make it happen. I found in the changelog that there have been arguments like --ylePassi and --auth back in 2014, but they are not present anymore.

I also noticed that AdobeHDS.php refers to and reads a file called Cookie.txt. I had no luck adding such a file with my areena.yle.fi cookie contents to the working directory while running yle-dl.

Does yle-dl include some way to utilize this type of authentication?

koutsie commented 3 years ago

This would be an nice addition so aboard you wouldn't need to use a finnish proxy :)

aajanki commented 3 years ago

Yle tunnus is not currently supported. However, the latests versions (since version 20210808) should anyway be able to download most geo-blocked streams abroad. Yle-dl uses a fake source address to convince Yle Areena servers that the user is in Finland. This trick does not work on all program, at least live TV is still viewable only in Finland.