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

×
avatar
sbaylus: Would this fix the following?

$ /usr/bin/lgogdownloader --update-cache --threads 8
Getting game names (46/46) 33 / 33
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_M_replace
Aborted
Yes, that should fix it.

GOG started to use Fastly CDN for the offline installers and the url formatting for them is different than what lgogdownloader was expecting.
The downloader was missing some checks with string handling which caused the length error.
This was the original fix for it
52b8bdc Fix galaxyAPI::getPathFromDownlinkUrl with Fastly CDN urls

I made some more improvements to it with 6556dc6

I'll bump the version number and do a new release probably later today or tomorrow.
Post edited August 23, 2024 by Sude
Thanks!
avatar
sbaylus: Would this fix the following?

$ /usr/bin/lgogdownloader --update-cache --threads 8
Getting game names (46/46) 33 / 33
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_M_replace
Aborted
avatar
Sude: Yes, that should fix it.

GOG started to use Fastly CDN for the offline installers and the url formatting for them is different than what lgogdownloader was expecting.
The downloader was missing some checks with string handling which caused the length error.
This was the original fix for it
52b8bdc Fix galaxyAPI::getPathFromDownlinkUrl with Fastly CDN urls

I made some more improvements to it with 6556dc6

I'll bump the version number and do a new release probably later today or tomorrow.
LGOGDownloader 3.15
- Changed Galaxy CDN priority handling to be more generic
- Changed default Galaxy CDN priority to "edgecast,akamai_edgecast_proxy,fastly"
- Added option to list available CDNs
* --galaxy-list-cdns
- Added option to force browser based login
* --browser-login
- Fixed login check when redirected to embedded version of website
- Fixed handling Fastly CDN urls
- Fixed crash caused by errors in html to xhtml conversion

https://github.com/Sude-/lgogdownloader/releases/download/v3.15/lgogdownloader-3.15.tar.gz

sha256: 9946558bb30b72cd5ed712e7fc425eef4b2a1fd22b5475d1a998720800cd25f0
md5: 6a6d5e71a02b2b020da43d94474b6ac4
avatar
Sude: LGOGDownloader 3.15
- Changed Galaxy CDN priority handling to be more generic
- Changed default Galaxy CDN priority to "edgecast,akamai_edgecast_proxy,fastly"
- Added option to list available CDNs
* --galaxy-list-cdns
- Added option to force browser based login
* --browser-login
- Fixed login check when redirected to embedded version of website
- Fixed handling Fastly CDN urls
- Fixed crash caused by errors in html to xhtml conversion

https://github.com/Sude-/lgogdownloader/releases/download/v3.15/lgogdownloader-3.15.tar.gz

sha256: 9946558bb30b72cd5ed712e7fc425eef4b2a1fd22b5475d1a998720800cd25f0
md5: 6a6d5e71a02b2b020da43d94474b6ac4
Thank you for your work.

I can go back to updating my games without damaging my mouse, and my wrist :-)
does anyone know of an updated lgogdownloader docker?


Tried this one with 3.15

/nvllsvm/docker-lgogdownloader/blob/master/Dockerfile

still fails with

Getting game names (4/4) 5 / 5
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_M_replace
Aborted
Post edited 5 days ago by e_Lap
Since lgogdownloader can download "Galaxy downloads" using the Akamai CDN, would it be possible to implement downloading also offline installers from Akamai, and not Fastly?

To my understanding, the Galaxy client does download the offline installers using Akamai, if you choose to download your offline installers with the Galaxy client, instead of your web browser.

Why use Akamai instead of Fastly? Because for many (all?) people Akamai downloads seem to be far faster than Fastly servers. You can see this if you try to download offline installers with your browser and the Galaxy client.

I have a 600Mbit/s (75 MByte/s) internet line, and with a browser I can download offline installers at about 18-20 MByte/s which is ok. The fastest I've seen is around 36 MByte/s but haven't seen that for awhile, and for many Fastly seems to give quite poor download speeds, like under 1 MByte/s.

However, when downloading offline installers with Galaxy, the last time I tested it I got up to 70 MByte/s download speeds, so over three times faster than what I get with Fastly.
Post edited 19 hours ago by timppu
avatar
timppu: Since lgogdownloader can download "Galaxy downloads" using the Akamai CDN, would it be possible to implement downloading also offline installers from Akamai, and not Fastly?

To my understanding, the Galaxy client does download the offline installers using Akamai, if you choose to download your offline installers with the Galaxy client, instead of your web browser.

Why use Akamai instead of Fastly? Because for many (all?) people Akamai downloads seem to be far faster than Fastly servers. You can see this if you try to download offline installers with your browser and the Galaxy client.

I have a 600Mbit/s (75 MByte/s) internet line, and with a browser I can download offline installers at about 18-20 MByte/s which is ok. The fastest I've seen is around 36 MByte/s but haven't seen that for awhile, and for many Fastly seems to give quite poor download speeds, like under 1 MByte/s.

However, when downloading offline installers with Galaxy, the last time I tested it I got up to 70 MByte/s download speeds, so over three times faster than what I get with Fastly.
It wasn't possible few years ago when I had lots of issues when GOG was using Highwinds CDN while I was connected to my usual VPN.
I even asked from some GOG people if it was possible to choose CDN for offline installer downloads and they said it wasn't possible. That could have changed since then.

However I just installed Windows in a VM and snooped the Galaxy traffic using mitmproxy when downloading offline installers with Galaxy and at least for everything I tried it only connected to Fastly CDN.
I'm guessing the faster download speeds you are getting with Galaxy are because it uses multiple threads to download a single file.
Galaxy seems to be downloading in 10MB chunks using normal http range requests on the same url that lgogdownloader gets from the API for offline installers.
avatar
Sude: However I just installed Windows in a VM and snooped the Galaxy traffic using mitmproxy when downloading offline installers with Galaxy and at least for everything I tried it only connected to Fastly CDN.
I'm guessing the faster download speeds you are getting with Galaxy are because it uses multiple threads to download a single file.
That's interesting! I haven't checked myself but in another discussion someone claimed Galaxy was connecting to Akamai servers when downloading offline installers with it. Maybe it isn't so after all?

I need to try again whether I am still getting considerably better download speeds with Galaxy (for offline installers specifically). Back when I tried it, I got around 20 MBytes/sec with a browser (even if I downloaded several, e.g. three, files at the same time), while with Galaxy I got around 70 MBytes/sec (no idea how many threads it uses).

Downloading + installing a game with Galaxy was actually slower than downloading an offline installer with it, which I found surprising. In that case I got around 50 MBytes/sec with Galaxy.