Posted February 26, 2022
I just found out about lgogdownloader, I used a manual method before that. Somehow I came up with the same extras folder, but I use(d) different folders for versions, patches and DLCs.
Thanks for this! lgogdownloader takes away a lot of manual downloading I would have to do otherwise!
I do have a proposal though, and it concerns the download of the icon and additional game images.
E.g. with lgogdownloader --list-details --game <gamename> I already get a link to an icon in png format, but I couldn't find an option to actually download that icon.
Additionally, most games have a big (banner) image and smaller tile versions of that image, which I find interesting and want to include in my archive.
As an example, let's look at "syberia_the_world_before_prologue":
$ lgogdownloader --list-details --game syberia_the_world_before_prologue
gamename: syberia_the_world_before_prologue
product id: 1185739490
title: Syberia: The World Before Prologue
icon: https://images-2.gog-statics.com/2f96fb41d1eb7fb49d9a6409a6116b0a31787cfde97f46b2484fba37ee349d43.png
installers:
id: en1installer0
name: Syberia: The World Before Prologue
path: /syberia_the_world_before_prologue/setup_syberia_the_world_before_prologue_1.0_(43455).exe
size: 1048576
updated: False
language: English
version: 1.0
id: en1installer1
name: Syberia: The World Before Prologue
path: /syberia_the_world_before_prologue/setup_syberia_the_world_before_prologue_1.0_(43455)-1.bin
size: 2987393024
updated: False
language: English
version: 1.0
So, there is the icon link, listed after the title and before the installers:
https://images-2.gog-statics.com/2f96fb41d1eb7fb49d9a6409a6116b0a31787cfde97f46b2484fba37ee349d43.png
The (banner) image, currently not included in lgogdownloader, can be found when browsing the account (https://www.gog.com/account) and right-clicking the tile icon to show the image in another tab (depending on the screen resolution of the display the browser is running on I get either "_196" or "_392"):
https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d_196.jpg
https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d_392.jpg
Interesting is that I can simply remove the "_nnn" part, and then I get the image in full resolution:
https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d.jpg
This is the one I'm interested in and that I would like to include with the download.
My proposal: add "images" in the inlcude/exclude options (--include installers,images... ) and then download the icon and the big (banner) image as well, controllable via --subdir-images, defaulting to "images".
And just out of curiosity, I found "_product_tile_256_2x" is also available, as in:
https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d_product_tile_256_2x.jpg
So lgogdownloader could parse the account webpage, look for those "_196", "_392" and "_product_tile_256_2x" images, remove that part from the filename and then try one after the other, falling back from high res to low res, so the order would be:
1. https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d.jpg
2. https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d_product_tile_256_2x.jpg
3. https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d_392.jpg
4. https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d_196.jpg
Thus, if 1. exists and is successfully downloaded, stop right there. If that fails though, try 2. and so on...
And also download the icon (as listed by --list-details already), and all that goes into the --subdir-images (defaulting to "images") directory for the game.
Just an idea. What do you think? Doable?
Thanks for this! lgogdownloader takes away a lot of manual downloading I would have to do otherwise!
I do have a proposal though, and it concerns the download of the icon and additional game images.
E.g. with lgogdownloader --list-details --game <gamename> I already get a link to an icon in png format, but I couldn't find an option to actually download that icon.
Additionally, most games have a big (banner) image and smaller tile versions of that image, which I find interesting and want to include in my archive.
As an example, let's look at "syberia_the_world_before_prologue":
$ lgogdownloader --list-details --game syberia_the_world_before_prologue
gamename: syberia_the_world_before_prologue
product id: 1185739490
title: Syberia: The World Before Prologue
icon: https://images-2.gog-statics.com/2f96fb41d1eb7fb49d9a6409a6116b0a31787cfde97f46b2484fba37ee349d43.png
installers:
id: en1installer0
name: Syberia: The World Before Prologue
path: /syberia_the_world_before_prologue/setup_syberia_the_world_before_prologue_1.0_(43455).exe
size: 1048576
updated: False
language: English
version: 1.0
id: en1installer1
name: Syberia: The World Before Prologue
path: /syberia_the_world_before_prologue/setup_syberia_the_world_before_prologue_1.0_(43455)-1.bin
size: 2987393024
updated: False
language: English
version: 1.0
https://images-2.gog-statics.com/2f96fb41d1eb7fb49d9a6409a6116b0a31787cfde97f46b2484fba37ee349d43.png
The (banner) image, currently not included in lgogdownloader, can be found when browsing the account (https://www.gog.com/account) and right-clicking the tile icon to show the image in another tab (depending on the screen resolution of the display the browser is running on I get either "_196" or "_392"):
https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d_196.jpg
https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d_392.jpg
Interesting is that I can simply remove the "_nnn" part, and then I get the image in full resolution:
https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d.jpg
This is the one I'm interested in and that I would like to include with the download.
My proposal: add "images" in the inlcude/exclude options (--include installers,images... ) and then download the icon and the big (banner) image as well, controllable via --subdir-images, defaulting to "images".
And just out of curiosity, I found "_product_tile_256_2x" is also available, as in:
https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d_product_tile_256_2x.jpg
So lgogdownloader could parse the account webpage, look for those "_196", "_392" and "_product_tile_256_2x" images, remove that part from the filename and then try one after the other, falling back from high res to low res, so the order would be:
1. https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d.jpg
2. https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d_product_tile_256_2x.jpg
3. https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d_392.jpg
4. https://images-1.gog-statics.com/7e474cab4e4780d8ff24053f0992b9a8cdc960db9c2a59c9a27343211d51f32d_196.jpg
Thus, if 1. exists and is successfully downloaded, stop right there. If that fails though, try 2. and so on...
And also download the icon (as listed by --list-details already), and all that goes into the --subdir-images (defaulting to "images") directory for the game.
Just an idea. What do you think? Doable?