lutris / lutris

Lutris desktop client
https://lutris.net
GNU General Public License v3.0
7.77k stars 687 forks source link

Add support for itch.io downloads #2746

Closed axet closed 2 years ago

axet commented 4 years ago

Hello!

Having static files section has it's own issues. Right now only 'url', 'filename' and 'referrer' are supported but some sites require additional scripting to get download links.

For example to add games from itch.io you need ask for CDN dynamic url address (for load purpose or protection, I do not know) which can be done by simple script:

wget $(curl -X POST https://rayfowler.itch.io/remnants-of-the-precursors/file/2122764 | jq -r .url)

I face this issue trying to add game https://lutris.net/games/remnants-of-the-precursors/

It can be done with expanded script (scripts for stores), or inside lutris it self.

strycore commented 4 years ago

I think the best way to handle this would be to add support for Itch.io specifically like we do for Humble Bundle and GOG. Trying to come up with some scripting solution that is flexible for a number of unknown use case will just create an unmaintainable mess.

Moth-Tolias commented 4 years ago

would love to see this happen, the official itch client is quite a pain to work around. butler [which i understand is the bit that actually manages all the downloading] is open source though, so that should make things easier hopefully.

strycore commented 2 years ago

closing in favor of issue #243