This is an EXTREMELY DIRTY script to download cover art for Lutris games. It first started as a personal project, but I'm putting it here in case anyone else wants to use it.
It comes from a long time bug in Lutris. The source used to get cover arts is... unreliable. It's not a big deal, but it's annoying. So I wrote this script to download the cover arts from SteamGridDB.
-
Clone the repository
-
Install the dependencies
pip install -r requirements.txt
- Run the script
python3 main.py
You need a SteamGridDB API key. You can get one here.
Your library will go from this:
To this:
In a matter of seconds.
When I said the script dirty, it IS dirty. Obvisouly this won't get you any malware, but since I'm not that much into Python, I did what I could.
What the script does is that it fetches the list of games from Lutris at /home/$USER/.cache/lutris
, then it fetches the first cover art from SteamGridDB. It then saves the cover art in the Lutris cache folder.
- ❕ Argument support (--banner, --cover, --help)
- ❕ Add a simple GUI with console output
- ❕ Add a way to select the cover art you want via the GUI
- Split in multiple files
- Better code
- Encode API Key in file
- A better README?
- Big thanks to the Lutris team!
- Big thanks to SteamGridDB for their API and their resources!
- Obvious thanks to StackOverflow!