Posted March 17, 2023
![shmerl](https://images.gog.com/8288c34ad32187ee1ce1936444ca9346c9258adeaaf75575f7a8cd0fa33458d2_forum_avatar.jpg)
shmerl
🐧
Registered: Sep 2011
From United States
![g4r37h](https://images.gog.com/82444244cdb5470e1c9e880303dc1f5b7d016cb12213a851b798971e2ae1808a_forum_avatar.jpg)
g4r37h
New User
Registered: Apr 2012
From United Kingdom
Posted March 17, 2023
![avatar](http://images.gog.com/82444244cdb5470e1c9e880303dc1f5b7d016cb12213a851b798971e2ae1808a_avm.jpg)
All the best to those who continue to wrestle with lgogdownloader workarounds!
![avatar](http://images.gog.com/c9edf6c27f695e405aec90dc0fed1ff5cfbe7219ffb701fb0b8f0ec48e6ccf12_avm.jpg)
![g4r37h](https://images.gog.com/82444244cdb5470e1c9e880303dc1f5b7d016cb12213a851b798971e2ae1808a_forum_avatar.jpg)
g4r37h
New User
Registered: Apr 2012
From United Kingdom
Posted March 18, 2023
After seeing the update here on 3.10 the other day I thought I'd give that a try and... yeah. 3.10 fixes the login issue on Mac and I am once again updating my library with lgogdownloader.
Thanks Sude!
Thanks Sude!
![epain](https://images.gog.com/bdd4dc176c040e773bdc1a8cfc5b6f11448c2cb8212f886289b400711685f2d1_forum_avatar.jpg)
epain
E-PaiN
Registered: Sep 2012
From Netherlands
Posted March 18, 2023
Post edited March 18, 2023 by epain
![Sude](https://images.gog.com/efbc0aad8e343a8ce44d3fd116afc726089b74f151344bfd5a59ee93e99f57f2_forum_avatar.jpg)
Sude
🜂🜁🜄🜃𝓠
Registered: Dec 2009
From Finland
Posted March 24, 2023
LGOGDownloader 3.11
- Fixed cookies getting overwritten
* Sometimes curl handles in downloader and galaxy api class could overwrite cookies with blank cookies
* Fixed this by not setting CURLOPT_COOKIEJAR by default and only using it for curl handles in website class
https://github.com/Sude-/lgogdownloader/releases/download/v3.11/lgogdownloader-3.11.tar.gz
sha256: d8d015cce6e002876305517367dc006c332e4d492263173b58bfe5a94b057b09
md5: 82589e9be231079ef1f1fc97a027069d
- Fixed cookies getting overwritten
* Sometimes curl handles in downloader and galaxy api class could overwrite cookies with blank cookies
* Fixed this by not setting CURLOPT_COOKIEJAR by default and only using it for curl handles in website class
https://github.com/Sude-/lgogdownloader/releases/download/v3.11/lgogdownloader-3.11.tar.gz
sha256: d8d015cce6e002876305517367dc006c332e4d492263173b58bfe5a94b057b09
md5: 82589e9be231079ef1f1fc97a027069d
![sbaylus](https://images.gog.com/39f88b7915e872d5123f9d16e3393f4eb99c6ed2cd2fcd7accf0254ea095000c_forum_avatar.jpg)
sbaylus
New User
Registered: Jun 2012
From United States
Posted March 27, 2023
Would anyone have any suggestions on how to speed up the --update-cache operation? It's taking about 4 seconds / game and I have a lot of games. Using --threads 8 on the command line as well, and pasted my config below. Thanks!
automatic-xml-creation = true
cache-valid = 2880
chunk-size = 10
curl-verbose = false
directory = .
#dlc-list = https://raw.githubusercontent.com/Sude-/lgogdownloader-lists/master/game_has_dlc.txt
exclude = ""
include = all
include-hidden-products = true
info-threads = 12
insecure = false
language = en
limit-rate = 0
lowspeed-rate = 200
lowspeed-timeout = 30
no-color = false
no-duplicate-handling = false
no-remote-xml = false
no-subdirectories = false
no-unicode = false
platform = w+l
progress-interval = 100
retries = 20
save-changelogs = true
save-serials = true
size-only = false
subdir-dlc = dlc/%dlcname%
subdir-extras = extras
subdir-game = %gamename%
subdir-installers =
subdir-language-packs = languagepacks
subdir-patches = patches
threads = 4
timeout = 10
use-cache = true
use-dlc-list = false
verbosity = 1
wait = 2
Forgot to mention, on 3.10; just compiled 3.11 and will run tonight but the different versions over the last long while haven't made any difference.
automatic-xml-creation = true
cache-valid = 2880
chunk-size = 10
curl-verbose = false
directory = .
#dlc-list = https://raw.githubusercontent.com/Sude-/lgogdownloader-lists/master/game_has_dlc.txt
exclude = ""
include = all
include-hidden-products = true
info-threads = 12
insecure = false
language = en
limit-rate = 0
lowspeed-rate = 200
lowspeed-timeout = 30
no-color = false
no-duplicate-handling = false
no-remote-xml = false
no-subdirectories = false
no-unicode = false
platform = w+l
progress-interval = 100
retries = 20
save-changelogs = true
save-serials = true
size-only = false
subdir-dlc = dlc/%dlcname%
subdir-extras = extras
subdir-game = %gamename%
subdir-installers =
subdir-language-packs = languagepacks
subdir-patches = patches
threads = 4
timeout = 10
use-cache = true
use-dlc-list = false
verbosity = 1
wait = 2
Forgot to mention, on 3.10; just compiled 3.11 and will run tonight but the different versions over the last long while haven't made any difference.
Post edited March 27, 2023 by sbaylus
![.Keys](https://images.gog.com/a1766ce4f75feb3641a5df09d627a6adb5ec353817e07b81b69ec290e5e157f3_forum_avatar.jpg)
.Keys
The right key always opens the right door.
Registered: May 2020
From Other
Posted March 27, 2023
![avatar](http://images.gog.com/efbc0aad8e343a8ce44d3fd116afc726089b74f151344bfd5a59ee93e99f57f2_avm.jpg)
- Fixed cookies getting overwritten
* Sometimes curl handles in downloader and galaxy api class could overwrite cookies with blank cookies
* Fixed this by not setting CURLOPT_COOKIEJAR by default and only using it for curl handles in website class
https://github.com/Sude-/lgogdownloader/releases/download/v3.11/lgogdownloader-3.11.tar.gz
sha256: d8d015cce6e002876305517367dc006c332e4d492263173b58bfe5a94b057b09
md5: 82589e9be231079ef1f1fc97a027069d
What is the safest method of updating?
Should I delete all the files / manual uninstallation or can I download and build everything that it will autoswap all the files needed?
Thanks.
![Sude](https://images.gog.com/efbc0aad8e343a8ce44d3fd116afc726089b74f151344bfd5a59ee93e99f57f2_forum_avatar.jpg)
Sude
🜂🜁🜄🜃𝓠
Registered: Dec 2009
From Finland
Posted March 27, 2023
![avatar](http://images.gog.com/39f88b7915e872d5123f9d16e3393f4eb99c6ed2cd2fcd7accf0254ea095000c_avm.jpg)
That change should massively speedup cache update when --ignore-dlc-count option is not used
Previously cache update always forced dlc count to be ignored for all games causing the downloader to get lots of unnecessary details in a single threaded code path.
Now some of the details (mainly serials and changelogs) are gathered later on the multi threaded code path if necessary.
I'm actually considering removing --ignore-dlc-count option because it doesn't really have a purpose anymore due to changes in the downloader even though GOG still doesn't report dlc count properly.
Setting --info-threads to bigger value could speed up the operation but it's not really guaranteed
![sbaylus](https://images.gog.com/39f88b7915e872d5123f9d16e3393f4eb99c6ed2cd2fcd7accf0254ea095000c_forum_avatar.jpg)
sbaylus
New User
Registered: Jun 2012
From United States
Posted March 27, 2023
![avatar](http://images.gog.com/39f88b7915e872d5123f9d16e3393f4eb99c6ed2cd2fcd7accf0254ea095000c_avm.jpg)
![avatar](http://images.gog.com/efbc0aad8e343a8ce44d3fd116afc726089b74f151344bfd5a59ee93e99f57f2_avm.jpg)
That change should massively speedup cache update when --ignore-dlc-count option is not used
Previously cache update always forced dlc count to be ignored for all games causing the downloader to get lots of unnecessary details in a single threaded code path.
Now some of the details (mainly serials and changelogs) are gathered later on the multi threaded code path if necessary.
I'm actually considering removing --ignore-dlc-count option because it doesn't really have a purpose anymore due to changes in the downloader even though GOG still doesn't report dlc count properly.
Setting --info-threads to bigger value could speed up the operation but it's not really guaranteed
![sbaylus](https://images.gog.com/39f88b7915e872d5123f9d16e3393f4eb99c6ed2cd2fcd7accf0254ea095000c_forum_avatar.jpg)
sbaylus
New User
Registered: Jun 2012
From United States
Posted March 28, 2023
RE b520eb8 Speedup cache update
Wow, it zipped right through the update cache! Thanks!
Now, another question, during the next step, I use:
--download --report --verbosity 1
and sometime I believe within the last build or two I get a lot of these messages (I'm sure I'm probably just seeing them now, maybe to your verbosity change in 3.10?) Anything needed to be done about this on my end or is it just a GOG thing?
Response code for https://api.gog.com/products/1440500290/downlink/installer/en2installer0 is [404]
Response code for https://api.gog.com/products/1440500290/downlink/installer/en1installer0 is [404]
Response code for https://api.gog.com/products/1781057675/downlink/product_bonus/93589 is [404]
Response code for https://api.gog.com/products/1380416196/downlink/product_bonus/89453 is [404]
Wow, it zipped right through the update cache! Thanks!
Now, another question, during the next step, I use:
--download --report --verbosity 1
and sometime I believe within the last build or two I get a lot of these messages (I'm sure I'm probably just seeing them now, maybe to your verbosity change in 3.10?) Anything needed to be done about this on my end or is it just a GOG thing?
Response code for https://api.gog.com/products/1440500290/downlink/installer/en2installer0 is [404]
Response code for https://api.gog.com/products/1440500290/downlink/installer/en1installer0 is [404]
Response code for https://api.gog.com/products/1781057675/downlink/product_bonus/93589 is [404]
Response code for https://api.gog.com/products/1380416196/downlink/product_bonus/89453 is [404]
![Sude](https://images.gog.com/efbc0aad8e343a8ce44d3fd116afc726089b74f151344bfd5a59ee93e99f57f2_forum_avatar.jpg)
Sude
🜂🜁🜄🜃𝓠
Registered: Dec 2009
From Finland
Posted March 28, 2023
![avatar](http://images.gog.com/39f88b7915e872d5123f9d16e3393f4eb99c6ed2cd2fcd7accf0254ea095000c_avm.jpg)
Wow, it zipped right through the update cache! Thanks!
Now, another question, during the next step, I use:
--download --report --verbosity 1
and sometime I believe within the last build or two I get a lot of these messages (I'm sure I'm probably just seeing them now, maybe to your verbosity change in 3.10?) Anything needed to be done about this on my end or is it just a GOG thing?
Response code for https://api.gog.com/products/1440500290/downlink/installer/en2installer0 is [404]
Response code for https://api.gog.com/products/1440500290/downlink/installer/en1installer0 is [404]
Response code for https://api.gog.com/products/1781057675/downlink/product_bonus/93589 is [404]
Response code for https://api.gog.com/products/1380416196/downlink/product_bonus/89453 is [404]
9cd85f6 Don't try to get details for unowned DLCs
That should get rid of most or all of the 404 errors
![sbaylus](https://images.gog.com/39f88b7915e872d5123f9d16e3393f4eb99c6ed2cd2fcd7accf0254ea095000c_forum_avatar.jpg)
sbaylus
New User
Registered: Jun 2012
From United States
Posted March 28, 2023
![avatar](http://images.gog.com/39f88b7915e872d5123f9d16e3393f4eb99c6ed2cd2fcd7accf0254ea095000c_avm.jpg)
Wow, it zipped right through the update cache! Thanks!
Now, another question, during the next step, I use:
--download --report --verbosity 1
and sometime I believe within the last build or two I get a lot of these messages (I'm sure I'm probably just seeing them now, maybe to your verbosity change in 3.10?) Anything needed to be done about this on my end or is it just a GOG thing?
Response code for https://api.gog.com/products/1440500290/downlink/installer/en2installer0 is [404]
Response code for https://api.gog.com/products/1440500290/downlink/installer/en1installer0 is [404]
Response code for https://api.gog.com/products/1781057675/downlink/product_bonus/93589 is [404]
Response code for https://api.gog.com/products/1380416196/downlink/product_bonus/89453 is [404]
![avatar](http://images.gog.com/efbc0aad8e343a8ce44d3fd116afc726089b74f151344bfd5a59ee93e99f57f2_avm.jpg)
9cd85f6 Don't try to get details for unowned DLCs
That should get rid of most or all of the 404 errors
Response code for https://api.gog.com/products/1978178686/downlink/installer/en1installer2 is [404]
Response code for https://api.gog.com/products/1207665233/downlink/installer/fr1installer3 is [401]
Response code for https://api.gog.com/products/1430740458/downlink/patch/en1patch1 is [401]
Response code for https://api.gog.com/products/1088633272/downlink/patch/en1patch4 is [401]
Response code for https://api.gog.com/products/1978178686/downlink/patch/en1patch0 is [404]
![eiii](https://images.gog.com/8233fa4d06abcaf2c477cc3de7d65efd5dda42dc05cfecc5c282d620f57284b3_forum_avatar.jpg)
eiii
#%&@#%
Registered: Dec 2013
From San Marino
Posted April 08, 2023
Version 3.11 and current master of lgogdownloader cannot be built with libcurl3 anymore:
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found suitable version "7.52.1", minimum required is "7.32.0")
src/downloader.cpp: In static member function ‘static int Downloader::progressCallback(void*, curl_off_t, curl_off_t, curl_off_t, curl_off_t)’:
src/downloader.cpp:1435:63: error: ‘CURLINFO_SPEED_DOWNLOAD_T’ was not declared in this scope
if (CURLE_OK != curl_easy_getinfo(downloader->curlhandle, CURLINFO_SPEED_DOWNLOAD_T, &curl_rate))
CURLINFO_SPEED_DOWNLOAD_T is used in at least two more places.
Is there a workaround available to still build lgogdownloader with libcurl3?
If not at least the minimum libcurl requirement should be adjusted.
Edit:
Reverting 78c8f435768b63224bb4ee429d5575813956b6a8 and replacing CURLINFO_CONTENT_LENGTH_DOWNLOAD_T by CURLINFO_CONTENT_LENGTH_DOWNLOAD fixes the build for now. But I'm not sure if the different variable type for the returned file size causes any problems at runtime.
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found suitable version "7.52.1", minimum required is "7.32.0")
src/downloader.cpp: In static member function ‘static int Downloader::progressCallback(void*, curl_off_t, curl_off_t, curl_off_t, curl_off_t)’:
src/downloader.cpp:1435:63: error: ‘CURLINFO_SPEED_DOWNLOAD_T’ was not declared in this scope
if (CURLE_OK != curl_easy_getinfo(downloader->curlhandle, CURLINFO_SPEED_DOWNLOAD_T, &curl_rate))
CURLINFO_SPEED_DOWNLOAD_T is used in at least two more places.
Is there a workaround available to still build lgogdownloader with libcurl3?
If not at least the minimum libcurl requirement should be adjusted.
Edit:
Reverting 78c8f435768b63224bb4ee429d5575813956b6a8 and replacing CURLINFO_CONTENT_LENGTH_DOWNLOAD_T by CURLINFO_CONTENT_LENGTH_DOWNLOAD fixes the build for now. But I'm not sure if the different variable type for the returned file size causes any problems at runtime.
Post edited April 08, 2023 by eiii
![Sude](https://images.gog.com/efbc0aad8e343a8ce44d3fd116afc726089b74f151344bfd5a59ee93e99f57f2_forum_avatar.jpg)
Sude
🜂🜁🜄🜃𝓠
Registered: Dec 2009
From Finland
Posted April 12, 2023
![avatar](http://images.gog.com/8233fa4d06abcaf2c477cc3de7d65efd5dda42dc05cfecc5c282d620f57284b3_avm.jpg)
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found suitable version "7.52.1", minimum required is "7.32.0")
src/downloader.cpp: In static member function ‘static int Downloader::progressCallback(void*, curl_off_t, curl_off_t, curl_off_t, curl_off_t)’:
src/downloader.cpp:1435:63: error: ‘CURLINFO_SPEED_DOWNLOAD_T’ was not declared in this scope
if (CURLE_OK != curl_easy_getinfo(downloader->curlhandle, CURLINFO_SPEED_DOWNLOAD_T, &curl_rate))
CURLINFO_SPEED_DOWNLOAD_T is used in at least two more places.
Is there a workaround available to still build lgogdownloader with libcurl3?
If not at least the minimum libcurl requirement should be adjusted.
Edit:
Reverting 78c8f435768b63224bb4ee429d5575813956b6a8 and replacing CURLINFO_CONTENT_LENGTH_DOWNLOAD_T by CURLINFO_CONTENT_LENGTH_DOWNLOAD fixes the build for now. But I'm not sure if the different variable type for the returned file size causes any problems at runtime.
0f3ce5d sets minimum to 7.55.0
Reverting 78c8f43 shouldn't cause issues due to different variable type because the value is casted to double like it was previously
![eiii](https://images.gog.com/8233fa4d06abcaf2c477cc3de7d65efd5dda42dc05cfecc5c282d620f57284b3_forum_avatar.jpg)
eiii
#%&@#%
Registered: Dec 2013
From San Marino
Posted April 16, 2023
![avatar](http://images.gog.com/39f88b7915e872d5123f9d16e3393f4eb99c6ed2cd2fcd7accf0254ea095000c_avm.jpg)
![avatar](http://images.gog.com/efbc0aad8e343a8ce44d3fd116afc726089b74f151344bfd5a59ee93e99f57f2_avm.jpg)
But what are the newly added (between v3.9 and v3.11) zeros at the end of the filename lines? Like:
ND dreadful_river_demo setup_dreadful_river_demo_0.4.138.1_(64bit)_(63857).exe 0
ND imagine_earth_demo setup_imagine_earth_1.11.4.5788-gog-demo_(63810).exe 0
Is there any option to get rid of them?
Post edited April 16, 2023 by eiii