Commit Graph

586 Commits

Author SHA1 Message Date
Sude
c9198d672d Added option to list game details as JSON
Removed --list-details option
Added --list-format to select a format that --list uses

"no_details" is the same as --list previously and the default value
"details" is the same as --list-details was previously
"json" is JSON formatted output
2023-03-13 22:25:33 +02:00
Sude
dcfd368fa0 Be more clear which url to copy & paste during login 2023-03-12 15:57:53 +02:00
Sude
c26e28a564 Refactor login code
Users can now get around reCATPCHA without the downloader being built with GUI enabled by using their browser to login
2023-03-12 15:16:49 +02:00
Sude
9e5e833691 Merge https://github.com/ddonatek/lgogdownloader 2023-03-12 15:14:50 +02:00
David Donátek
4fcb3bceb7 Slightly nicer libcurl cleanup 2023-01-01 04:55:46 +01:00
David Donátek
ed41fbef6f Revert "Fix core dump with libcurl >= 7.87.0"
This reverts commit 6ce6aeb1dc.
2023-01-01 04:50:09 +01:00
Sude
78c8f43576 Don't use depracated libcurl options
Use CURLINFO_SPEED_DOWNLOAD_T instead of CURLINFO_SPEED_DOWNLOAD
Use CURLOPT_UPLOAD instead of CURLOPT_PUT
2022-12-28 00:46:29 +02:00
Sude
6ce6aeb1dc Fix core dump with libcurl >= 7.87.0
Relying on automatic object allocation caused curl_global_cleanup() to be called before destructor cleaned up curl handles causing segfault.
Use dynamic object allocation and delete objects before calling curl_global_cleanup() so destructor is executed before global cleanup.
2022-12-28 00:17:19 +02:00
Sude
e5d347d5b2 Add option to set message verbosity level
Replaced --verbose option with --verbosity to better control message verbosity
2022-12-16 13:35:37 +02:00
Sude
a4423b0548 Merge branch 'extendSizeOnly' of https://github.com/Bob837217/lgogdownloader 2022-11-22 16:41:45 +02:00
Gordon
ba4d04e4c8 Extended global flag bSizeOnly into status text generation 2022-11-18 18:17:16 +00:00
Sude
211a0a80b3 Galaxy: Add initial support for ignoring DLCs
Adds support to ignore all DLCs when installing game with --galaxy-install
2022-10-01 20:31:04 +03:00
Sude
626aa681c9 Galaxy: Fix MojoSetup hack for files that have missing XML data
Try to get file size using Content-Length header if XML data is missing
2022-10-01 20:28:03 +03:00
Sude
6ae6ab2469 Merge branch 'cloud-save' of https://github.com/loki-47-6F-64/lgogdownloader 2022-10-01 20:18:12 +03:00
loki-47-6F-64
b778370a52 Fix rare error for logging in 2022-08-09 11:07:08 +02:00
loki-47-6F-64
aba2c3c9c5 Handle default locations 2022-08-08 14:20:52 +02:00
loki-47-6F-64
f8852e9ad5 Add the abillity to delete cloud saves 2022-08-04 23:55:18 +02:00
loki-47-6F-64
6870330eab Add the abillity to force upload/download of cloud saves even if up-to-date 2022-08-04 23:27:04 +02:00
loki-47-6F-64
4ff846e5cd Add a whitelist and blacklist for cloud saves 2022-08-04 23:04:37 +02:00
loki-47-6F-64
5db36f6b7f show shorter path for cloud saves 2022-08-04 20:44:05 +02:00
loki-47-6F-64
0b8a762953 Don't skip incomplete download coud saves 2022-08-04 20:18:14 +02:00
loki-47-6F-64
33ec0434aa Upload local saves to the cloud 2022-08-04 16:57:15 +02:00
loki-47-6F-64
829d263bc7 Show local cloud save files 2022-08-03 14:53:45 +02:00
loki-47-6F-64
c97a828aa7 Download cloud save files 2022-08-02 18:36:31 +02:00
loki-47-6F-64
c4f604aec0 Show cloud save paths 2022-07-31 14:11:32 +02:00
loki-47-6F-64
8e046e977d Rudimentary support for showing location of local saves for cloud saves 2022-07-28 21:11:44 +02:00
Sude
6560688d8a Version 3.9 2022-02-19 12:12:11 +02:00
Sude
983592d09e Reduce the amount of request to cdn with --galaxy-install
Should fix the issue of getting temporarily blocked by GOG cdn when installing game with lots of small files
2022-02-17 10:30:38 +02:00
Sude
30f698867c Fix getting XML data
GOG changed something and now the server sometimes responds with gzip compressed XML data
Set CURLOPT_ACCEPT_ENCODING to enable decoding of a response when Content-Encoding header is received
Moved zlib decompression from GalaxyAPI::getResponse to GalaxyAPI::getResponseJson and made it automatic when detecting zlib header
2022-02-16 14:50:19 +02:00
Sude
e1adcb2c75 Merge branch 'update_readme' of https://github.com/bensuperpc/lgogdownloader 2021-12-07 12:53:41 +02:00
Sude
140f382836 Merge branch 'add_ci' of https://github.com/bensuperpc/lgogdownloader 2021-12-07 12:53:31 +02:00
Bensuperpc
3d472d2ee0 Update readme
Update Readme

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2021-11-30 12:52:40 +01:00
Bensuperpc
9c1fe8d882
Update linux.yml 2021-11-30 12:49:32 +01:00
Bensuperpc
d5f75029a4 Add github action
Add github action

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2021-11-30 12:29:28 +01:00
Sude
ab3a2019e4 Fix --download-file option not showing progress bar 2021-11-20 12:02:42 +02:00
Sude
695916af4c Add support for tags
Adds basic support for filtering games using tags that the user can set on account page
Add option --list-tags to list all the tags user has assigned
Add option --tag to filter games using the tags
2021-11-09 14:59:42 +02:00
Sude
3251e9c42d Merge branch 'sizeOnly' of https://github.com/rouanth/lgogdownloader 2021-11-09 14:51:42 +02:00
Dmitry Khalanskiy
554de90f46 Add a flag to avoid hash checks 2021-09-12 10:25:37 +03:00
Sude
f69747bb88 Remove support for OpenSSL <= 1.0.2
Removes openssl thread locking callbacks required by OpenSSL <= 1.0.2
Other SSL libraries and newer OpenSSL should be handled by libcurl in a way that is thread-safe
2021-09-09 14:18:17 +03:00
Sude
521eea8522 Ignore SIGPIPE
It's possible to receive SIGPIPE sometimes which by default causes application to terminate.
This makes the downloader ignore SIGPIPE.
2021-09-09 14:03:51 +03:00
Sude
70d2fdbefc Add option --use-dlc-list
Adds new option --use-dlc-list to enable using DLC list.
Previously the downloader used DLC list by default which made getting game details very slow for not much benefit.
This makes the downloader not use DLC list by default and thus getting game details is much faster.

Before and after result of listing games with 212 game collection using "time lgogdownloader --list"

Before
real    0m36,135s
user    0m0,159s
sys     0m0,039s

After
real    0m2,226s
user    0m0,048s
sys     0m0,019s
2021-08-26 13:26:13 +03:00
Sude
9d24bd1990 Version 3.8 2021-08-25 15:21:57 +03:00
Sude
209d83143e Skip files that are listed by API for information purposes only
For some games the API shows files with "count" and "total_size" of zero meaning that they are not available to download
These are listed on account page for information purpose only (for example to show DLCs included in the installer)
2021-08-13 15:22:48 +03:00
Sude
4e09d6357e Add directory template %gamename_firstletter%
Feature request by "coffeecup" on GOG forums
Useful for sorting big libraries with --subdir-game option
Takes the first letter from %gamename%
If %gamename% begins with a number then 0 (zero) is used instead
2021-08-06 11:46:07 +03:00
Sude
d307d22195 Check for invalid path in GalaxyAPI::fileJsonNodeToGameFileVector
Skip the file if we get invalid path for some reason.
This should help with issue #200 (Crashes when downloading "secure")
2021-08-06 11:25:54 +03:00
Sude
584fef3988 Use duplicate handler for extras
Makes downloader use duplicate handler for extras
This should help to avoid a race condition mentioned in issue #200 (Crashes when downloading "secure") because the downloader no longer tries to download the same file from multiple threads
2021-08-06 11:23:02 +03:00
Sude
eef1d4d15e Make failure to set timestamp not critical
Print warning message about the error but continue instead of dying
2021-04-06 18:16:35 +03:00
Sude
04592d512a Don't change globalConfig.bLogin value in Downloader::isLoggedIn 2021-03-31 15:39:18 +03:00
Sude
36181afb4d Fix return value of Downloader::login
https://github.com/Sude-/lgogdownloader/issues/194
2021-03-30 16:22:52 +03:00
Sude
e43d1c46d9 Merge branch 'ssl-connect-error' of https://github.com/itoijala/lgogdownloader 2020-12-31 18:00:14 +02:00