Open Zackyist opened 2 years ago
I'm experiencing the same behavior. All downloaded images in .\images are deleted when running csv_parser --html5
you'd need to rename the images to get rid of ?namespace=gamesdb
before running the html5
-export.
i.e. perl-rename 's/\?namespace=gamesdb//' images/*
on linux machines
Well, it's clear that my fix for these issues clearly isn't working anymore, I'll have to update the CSV exporter and check again where the problem seems to be.
Something worth noting (may not be entirely related, I'm just getting back to looking at this project) is that these images are already cached locally with the exact same filename (minus the query params). Mine are currently stored at "C:\ProgramData\GOG.com\Galaxy\webcache{I think this is a GOG user ID}{platform}".
Perhaps it is worth enumerating all of the webp files in the webcache and doing a lookup for the URL filenames and copying them from the webcache to avoid redundant downloads, and perhaps even consider symlinking to the originals instead? Might be overkill, but just wanted to bring this to your attention.
I opened a PR aiming to fix that issue. #6
Love the project, it's a perfect visualization tool for someone like me with a ton of games!
However, I'm having trouble getting any of the game cover images to work - none of them are showing in the HTML file because of bad filenames. I'm not sure if this is due to a change in the image APIs or a bug in the rename function or something else.
I cloned the latest repo, I've installed the required Python libraries, and I'm trying to use it with the following commands on elementary OS:
I also tried
--embed
with the last one but it changed nothing. I got the output:Meaning that every single one of my downloaded cover images had been deleted so I had to re-download them again. I found that the files wget downloads for me are named e.g.:
The filenames stay the same after running the script if I comment out the deletion line so the script is not renaming them properly, i.e. removing the
?namespace=gamesdb
part from the end. I manually renamed a few and the images immediately showed up in the HTML file.