Closed misl6 closed 11 months ago
Sourceforge (and possibly many others) website is showing an intermediate waiting page when the user agent can handle it.
Instead, by using Wget/1.0 as user agent, the redirect to the appropriate mirror works fine.
Wget/1.0
This code is taken from python-for-android, which had a similar issue with liblzma.
python-for-android
liblzma
... 💬 would be nice to have a utils library to share against python-for-android and kivy-ios in order to avoid duplicate effort.
kivy-ios
Additionally: FancyURLopener has been deprecated in 3.3, and I guess it will be removed soon?
FancyURLopener
3.3
@AndreMiras let's see what the CI thinks about it, but that's what I was talking about in https://github.com/kivy/kivy-ios/pull/827#discussion_r1264646950.
Do you recall why we faked the User Agent previously?
Sourceforge (and possibly many others) website is showing an intermediate waiting page when the user agent can handle it.
Instead, by using
Wget/1.0
as user agent, the redirect to the appropriate mirror works fine.This code is taken from
python-for-android
, which had a similar issue withliblzma
.... 💬 would be nice to have a utils library to share against
python-for-android
andkivy-ios
in order to avoid duplicate effort.Additionally:
FancyURLopener
has been deprecated in3.3
, and I guess it will be removed soon?