kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
758 stars 237 forks source link

Fix download from `sourceforge` (and possibly many others) #830

Closed misl6 closed 11 months ago

misl6 commented 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.

This code is taken from python-for-android, which had a similar issue with liblzma.

... 💬 would be nice to have a utils library to share against python-for-android and kivy-ios in order to avoid duplicate effort.

Additionally: FancyURLopener has been deprecated in 3.3, and I guess it will be removed soon?

misl6 commented 11 months ago

@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?