yle-dl icon indicating copy to clipboard operation
yle-dl copied to clipboard

[feature-request] geo-blocking

Open eevvoor opened this issue 4 years ago • 9 comments

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.

eevvoor avatar Mar 08 '21 15:03 eevvoor

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.

aajanki avatar Mar 08 '21 17:03 aajanki

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 avatar Mar 09 '21 00:03 eevvoor

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

eevvoor avatar Mar 09 '21 00:03 eevvoor

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

eevvoor avatar Apr 28 '21 21:04 eevvoor

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.

aajanki avatar Apr 29 '21 18:04 aajanki

Ok I try to find time. Thank you.

eevvoor avatar May 10 '21 16:05 eevvoor

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.

aajanki avatar Jul 19 '21 08:07 aajanki

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.

deroverda avatar May 26 '23 20:05 deroverda

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

What kind of error message do you see?

aajanki avatar May 29 '23 18:05 aajanki