Emersont1 / itchio

https://pypi.org/project/itchiodl/
MIT License
101 stars 17 forks source link

Feature Request: Cache download_key_ids #67

Open xcorvis opened 1 year ago

xcorvis commented 1 year ago

When downloading purchased games individually it's necessary to first get the download_key_id. With large libraries this can be many pages, which must be repeated for each individual purchased download. One fix for this would be to download and cache the download_key_ids if it's missing, and re-use the cache when it's available.

See https://github.com/Emersont1/itchio/issues/63 for background.

I have hundreds of purchased games due to a few large bundles, but I don't want everything, and the itch.io official app is so bad at multiple file downloads it's unusable. Ultimately I'd like to be able to create a list of games I want to keep updated and run something like this once in a while:

itch-download -k $key --update-purchases --cache .itchiodl-cache
for $game-url in list-of-games; do
  itch-download -k $key --cache .itchiodl-cache --download-game $game-url
done
Emersont1 commented 1 year ago