It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Silly me has a new question (An i am not sure if i did not ask the same some weeks or months ago)
I want additionally to the stuff we can download the neat little picture ( Like https://images-2.gog-statics.com/12a2180e6c2c61a6cd2d8de68e3d58a15ac2658fede204a5aa13091cba0e770e.jpg for ABZU) downloaded and added to the game folder for a later offline-html-index-library-thingy... I see that there are the links already in the dat, has anyone a code (chatgpt is still to stupid or i ask the wrong questions) which could solve this or could you, blessed Kalanyr, add an option to your script?
The code or command for the gogrepoc.py should catch the string
'image_url': '//images-3.gog-statics.com/2e30cb3aab01490e01ff04d0ef1e3f386d6414bc58cfb93add04353b553ff081',
and download the content.

Edited because of wrong code, correct code in the next post.
Post edited April 03, 2023 by Genericjohndoe
@echo off
setlocal EnableDelayedExpansion

set "dat_file=I:\NeuerOrdner\gog-manifest.dat"
set "output_file=I:\NeuerOrdner\file.txt"

if exist "%output_file%" del "%output_file%"

for /F "tokens=2 delims=:{}," %%a in ('type "%dat_file%" ^| find /i "image_url"') do (
set "url=https:%%~a"
set "url=!url:'=!"
set "url=!url:image_url: =!"
set "url=!url: =!"
echo !url!.jpg>>"%output_file%"
)

echo

Works so far as i can grab via jdownloader the pictures. now i have to sort 741 files to the correct folders... :/
It would be very cool if i could ad an little option to the gogrepoc to get the pictures into the folders like the other files... (Please? With sunshine and free hugs?)
Post edited April 03, 2023 by Genericjohndoe
avatar
Genericjohndoe: @echo off
setlocal EnableDelayedExpansion

set "dat_file=I:\NeuerOrdner\gog-manifest.dat"
set "output_file=I:\NeuerOrdner\file.txt"

if exist "%output_file%" del "%output_file%"

for /F "tokens=2 delims=:{}," %%a in ('type "%dat_file%" ^| find /i "image_url"') do (
set "url=https:%%~a"
set "url=!url:'=!"
set "url=!url:image_url: =!"
set "url=!url: =!"
echo !url!.jpg>>"%output_file%"
)

echo

Works so far as i can grab via jdownloader the pictures. now i have to sort 741 files to the correct folders... :/
It would be very cool if i could ad an little option to the gogrepoc to get the pictures into the folders like the other files... (Please? With sunshine and free hugs?)
*hmmm* I can't see any problem with doing so except that it doesn't really fit into the workflow anywhere. I can add an extra command for it though. I'd usually turn this around today or tomorrow since it's so trivial but unfortunately I'm testing some stuff that I can only test during my monthly full updates at the moment, so it probably won't happen until around this time in May.
Thank you!

The reason for this is that i want to create an html-file as an index for my games, you click the picture and the folder opens or so. With nearly 750 games as an offline hoard this would be easier as just the plain windows-explorer. Especially for visual derps like me.

And it would be very convenient if the pictures are in the correct folders from the start so that i have not to sort this out.
Post edited April 03, 2023 by Genericjohndoe
avatar
Genericjohndoe: .......
Hello.
While Kalanyr seems happy to do this download image thing for you, if you are using Windows, you could use something else (i.e. AutoIt) to scan the text based file for the image link, and then download the image for you. I basically do that with my GUI, and it is not hard to script and compile into a little EXE file, which you can additionally run from your game download script.
avatar
Timboli: While Kalanyr seems happy to do this download image thing for you, if you are using Windows, you could use something else (i.e. AutoIt) to scan the text based file for the image link, and then download the image for you. I basically do that with my GUI, and it is not hard to script and compile into a little EXE file, which you can additionally run from your game download script.
It's pretty trivial to add to the Python script actually. Compared to all the other stuff going on, adding a few linked images is simple.

I did it myself a few years ago. IIRC, I also generated a simple HTML file for each game, showing some of the images and some info.
I wanted to grab a lot of the stuff from the store page too, but before I had time to work on it again, I noticed one of my favourite games (Marvellous Miss Take) no longer had a store page, so I kinda lost interest and moved over to other projects (embedded stuff for myself and simple games with my son).
Only so many hours in the day... *sigh*
avatar
brouer: I wanted to grab a lot of the stuff from the store page too, but before I had time to work on it again, I noticed one of my favourite games (Marvellous Miss Take) no longer had a store page, so I kinda lost interest and moved over to other projects (embedded stuff for myself and simple games with my son).
Just FYI, most, if not all, the information that was available on the store page is still accessible through GOG's links, available here:
https://www.gogdb.org/product/1207666973#details
Post edited April 07, 2023 by mrkgnao
Until now I was using a outdated script version from last september, which worked fine.

Today I tried the master version from january and got this error

File "/var/services/homes/MyUser/gogrepo/gogrepoc_2023-01-10.py", line 2936, in <module>
main(process_argv(sys.argv))
File "/var/services/homes/MyUser/gogrepo/gogrepoc_2023-01-10.py", line 2675, in main
cmd_update(args.os, args.lang, args.skipknown, args.updateonly, not args.full, args.ids, args.skipids,args.skiphidden,args.installers,args.resumemode,args.strictverify)
File "/var/services/homes/MyUser/gogrepo/gogrepoc_2023-01-10.py", line 1291, in cmd_update
updateSession = makeGOGSession()
File "/var/services/homes/MyUser/gogrepo/gogrepoc_2023-01-10.py", line 1240, in makeGOGSession
gogSession.headers={'User-Agent':USER_AGENT,'Authorization':'Bearer ' + gogSession.token['access_token']}

This happened when I tried to update games with the 'updated' flag.

How am I supposed to fix this? The old version from september still works. Has anything been changed in the requirements for the version from january?
Post edited April 08, 2023 by neumi5694
avatar
neumi5694: Until now I was using a outdated script version from last september, which worked fine.

Today I tried the master version from january and got this error

File "/var/services/homes/MyUser/gogrepo/gogrepoc_2023-01-10.py", line 2936, in <module>
main(process_argv(sys.argv))
File "/var/services/homes/MyUser/gogrepo/gogrepoc_2023-01-10.py", line 2675, in main
cmd_update(args.os, args.lang, args.skipknown, args.updateonly, not args.full, args.ids, args.skipids,args.skiphidden,args.installers,args.resumemode,args.strictverify)
File "/var/services/homes/MyUser/gogrepo/gogrepoc_2023-01-10.py", line 1291, in cmd_update
updateSession = makeGOGSession()
File "/var/services/homes/MyUser/gogrepo/gogrepoc_2023-01-10.py", line 1240, in makeGOGSession
gogSession.headers={'User-Agent':USER_AGENT,'Authorization':'Bearer ' + gogSession.token['access_token']}

This happened when I tried to update games with the 'updated' flag.

How am I supposed to fix this? The old version from september still works. Has anything been changed in the requirements for the version from january?
You need to login again. Not sure why it's not telling you that, I thought I fixed that.

ETA - Found the problem. Was only checking for one of two possible errors, will upload the fix early next month.
Post edited April 09, 2023 by Kalanyr
avatar
neumi5694: ...
avatar
Kalanyr: You need to login again. Not sure why it's not telling you that, I thought I fixed that.

ETA - Found the problem. Was only checking for one of two possible errors, will upload the fix early next month.
Nice, thanks.
Thanks for keeping the script up to date

What does
"requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.gog.com/downloads/the_witcher_3_wild_hunt_game/en1patch7
09:43:57 | End exception report.
! .\the_witcher_3_wild_hunt_game\patch_the_witcher_3_wild_hunt_4.00_(60926)_to_4.00_Hotfix_(61016)-1.bin
09:43:57 | XML verification data size does not match manifest size for setup_the_witcher_3_wild_hunt_-_free_dlc_program_(16_dlc)_4.02_hotfix_(63311).exe. manifest 839896, received 839960, skipping."

mean?
avatar
Flyby: Thanks for keeping the script up to date

What does
"requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.gog.com/downloads/the_witcher_3_wild_hunt_game/en1patch7
09:43:57 | End exception report.
! .\the_witcher_3_wild_hunt_game\patch_the_witcher_3_wild_hunt_4.00_(60926)_to_4.00_Hotfix_(61016)-1.bin
09:43:57 | XML verification data size does not match manifest size for setup_the_witcher_3_wild_hunt_-_free_dlc_program_(16_dlc)_4.02_hotfix_(63311).exe. manifest 839896, received 839960, skipping."

mean?
Usually means the file was changed since you last did updated the manifest. If that's the case you can fix it by doing a manual update of that game using the -ids parameter and then running the download command again.
Thanks, that worked
Thanks for the tool!
Giving it a go right now.