tanishqmanuja / apkmirror-downloader

📥 Download apps from APKMirror with ease.
https://www.npmjs.com/package/apkmirror-downloader
MIT License
35 stars 8 forks source link

Fetch latest build in case of multiple version-codes per version #6

Closed manuelschneider closed 9 months ago

manuelschneider commented 9 months ago

Hi! First of all, thanks for your work!

Sometimes apkmirror.com has more than one build per version. Imho it makes sense to fetch the most up to date one. For an example see the ovpn-connect app: https://www.apkmirror.com/apk/openvpn/openvpn-connect/openvpn-connect-3-4-0-release/

Best solution would probably be to include a functionality to handle version-codes. However, here's a quick fix to at least return the most up to date package.

tanishqmanuja commented 9 months ago

Great fix, Thanks.