Closed PoorPocketsMcNewHold closed 5 years ago
And i've tought i was stupid because i've didn't launched it with sudo.
pm@Velvet4Renaissance:~/steam-missing-covers-downloader$ sudo python3 missing_cover_downloader.py
Steam path: /root/.steam/steam
'NoneType' object has no attribute 'is_valid'
Switch to remote mode
Username: USERNAME
Password: PASSWORDd
Enter 2FA code: THE2FACODE
Login Success
SteamID: MYID
Traceback (most recent call last):
File "missing_cover_downloader.py", line 518, in <module>
main()
File "missing_cover_downloader.py", line 499, in main
os.mkdir(steam_grid_path)
FileNotFoundError: [Errno 2] No such file or directory: '/root/.steam/steam/userdata/MYID/config/grid'
Except that, this folder does exist (Those grid pictures are the ones i've already setup myself)
It seems steamgriddb updated their site yesterday and now it no longer shows score for a grid if the user is not logged in. And the script uses that score to sort the result. Change line 399 to
'score':0,
could temporarily solve the problem. The api also got changed and it now supports filtering 600x900 images so extracting information from html won't be necessary. I'll change back to using api to find covers in next version. As for 404 error, I've checked games with this error, all of them are not currently on steamgriddb. And running the script with sudo changes your home path, that's why it couldn't find steam path.
Thanks this fixed the issue. The script has worked perfectly. I also appreciate that it generate a missing grid .json file (Even if it loads contains false possitives but this was explained in #5).
The script now doesn't download any covers for the games it founds, It either: