This is an EXTREMELY DIRTY script to download cover art for Lutris games. With this fork I added an option to download both the cover and the banner at once, as well as two seperate scripts for whether you are using AUR lutris or a Flatpak of lutris, simply to save people time on changing the path directories.
SteamGridDB offers the original Steam covers on their website, however those are unable to be called through their API. If you want the original covers, use it manually.
You will need a SteamGridDB API key. You can get one here.
- Clone the repository
git clone https://github.com/kulaid/lutris-art-downloader
cd lutris-art-downloader/
- Install the dependencies
pip install -r requirements.txt
yay -S python-inquirer python-requests # If you are on Arch
- Run the script
python3 flatpak-version.py # Flatpak Script
python3 aur-version.py # AUR Script
What the script does is that it fetches the list of games from Lutris at ./.local/share/lutris/pga.db
, then it fetches the first cover art from SteamGridDB. It then saves the cover art in the Lutris cache folder.
Your library will go from this:
To this:
In a matter of seconds.
- Better code
- An icon downloading function
- Rename your games into the exact Steam title(?)
- All the credit goes to the original author and contributors to this script.
- Big thanks to the Lutris team!
- Big thanks to SteamGridDB for their API and their resources!
- Obvious thanks to StackOverflow!