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 51 forks source link

[feature-request] geo-blocking #267

Open eevvoor opened 3 years ago

eevvoor commented 3 years ago

As far as I understood, yle-dl does not support global acces to geo-blocked pages. It would be possible to implement it the way youtube-dl does it with its option --geo-bypass.

aajanki commented 3 years ago

Do you know how does youtube-dl evade geo-blocking? At least in Areena's case, the server checks that the IP is Finnish and refuses to respond if it isn't, and the only way to get a Finnish IP address is to have VPN or a proxy machine in Finland.

eevvoor commented 3 years ago

Youtube-dl's easiest way is to use the X-Forwarded-For header. That is what the --geo-bypass does. Easy, since as a user you do not have to provide anything than this option. Youtube-dl provides also an option for proxying but then you need to provide a proxy on the CLI. I can access all geo-blocked content on YLE via manipulating the X-Forwarded-For header in my browser. Thus, the easy way would work if it is implemented. I am available for testing / coding if you give me some hints.

eevvoor commented 3 years ago

Furthermore I am the perfect test since I live in a yle-geoblocked region :laughing:.

eevvoor commented 3 years ago

Why have you closed this issue? @aajanki En ymmärrä miks ... :-( siksi mä ei oo Suomess mutta haluaisin katsoa yle.

aajanki commented 3 years ago

Umm, this issue is still open. Maybe you confused this with the linked issue on the youtube-dl repo, which is closed.

Geo-blocking avoidance would be a nice feature but I probably don't have time to work on it any time soon. I'm happy to merge it if someone else implements it.

eevvoor commented 3 years ago

Ok I try to find time. Thank you.

aajanki commented 3 years ago

The geo-restrictions are now partially bypassed thanks to @IHeartGaming . Many streams can now be downloaded outside Finland but there are still some restrictions, at least live TV streams won't work.

deroverda commented 1 year ago

What's the command to bypass geo-restrictions? I'm Swedish and trying to download this: Tina Turner: Barcelona 1990

Thx in advance.

edit: kirjoitin englanniksi, koska suomeni on todella huono, toivottavasti se on ok.

aajanki commented 1 year ago

@deroverda, yle-dl should automatically bypass the geo-restriction, no need to alter the command.

What kind of error message do you see?