698 Commits

Author SHA1 Message Date
Sude
eeb68209a6 Merge https://github.com/nydragon/lgogdownloader 2025-10-28 14:39:53 +02:00
nydragon
a71ec0adee Util: Gracefully fail when $HOME is unset 2025-10-19 16:33:53 +02:00
Sude
2c55e27f82 Merge branch 'boost-1.89.0' of https://github.com/cho-m/lgogdownloader 2025-08-11 09:38:02 +03:00
Michael Cho
7ba719a7a5 CMake: Fix build with Boost 1.89.0 2025-08-10 23:50:35 -04:00
Sude
be7a4110fe Galaxy: Fix --galaxy-install and --galaxy-show-builds for Linux games
The changes made in 7653a52631 broke --galaxy-install and --galaxy-show-builds for Linux games
Product builds json is empty for Linux games but Downloader::sortGalaxyProductBuilds didn't check for empty json and proceeded to add empty items array to it.
This broke a check later in the code because the json wasn't empty anymore.
2025-07-31 04:15:17 +03:00
Sude
0ef5be372e Galaxy: Skip file when chunk fails after retry count is reached
Also change message level of chunk failure to default from verbose because the user should be informed about this by default
2025-07-19 00:38:16 +03:00
Sude
1cbc2278eb Initialize security code length variable
Forgot to initialize the variable in d16aa25788
2025-07-10 21:16:15 +03:00
Sude
7653a52631 Galaxy: Sort Galaxy builds
Sort Galaxy builds by date and branch
Deprioritize branches and deprioritize "compatibility" branch even more
2025-07-10 20:34:08 +03:00
Sude
21e9950c70 Galaxy: Handle duplicate file entries when installing
Duplicate files from DLCs overwrite base game versions
If there are multiple DLCs that have duplicate files then the last entry parsed wins
2025-07-10 20:26:11 +03:00
Sude
711120fc7b Galaxy: Check chunk hash after downloading
Retry chunk if hash check fails
2025-07-10 20:25:09 +03:00
Sude
d16aa25788 Add support for TOTP 2025-06-03 18:11:05 +03:00
Sude
555054e509 Version 3.17 v3.17 2025-03-19 15:27:31 +02:00
Sude
d8ec857cd6 Change --no-subdirectories option behavior for game subdirectory
367b57ca89 changed how --no-subdirectories worked
Before that commit --no-subdirectories affected only subdirectories under --subdir-game
After that commit it affected subdirectories under --directory

This changes the behavior back to how it was previously
Now --no-subdirectories affects only subdirectories under --subdir-game
2025-03-02 20:34:05 +02:00
Sude
cd69de7646 Galaxy: Add version info to --galaxy-show-builds for linux installers 2025-02-28 18:53:25 +02:00
Sude
37788ab15a Fix cache usage and add gamename to logo, icon and product json filenames
Fixes values added in 367b57ca89 not saved to cache and loaded from cache.
Bump cache version number to invalidate old caches.
Adds gamename to logo, icon and product json filenames to make sure we don't overwrite basegame files with files from DLCs when user has disabled subdirectories.
2025-02-19 23:13:03 +02:00
Sude
0bae0c2160 Fix orphan check
Fixes orphan check being broken after changes in 367b57ca89
2025-02-19 02:13:31 +02:00
Sude
759bb1d992 Remove dlc-list support and a small change to getting game names 2025-02-16 15:42:36 +02:00
Sude
367b57ca89 Improve subdir filepath template handling
Adds new templates for subdir options
%title%
%title_stripped%
%dlc_title%
%dlc_title_stripped%
2025-02-16 15:35:37 +02:00
Sude
5d6640de88 Version 3.16 v3.16 2024-12-22 18:16:18 +02:00
Sude
2beaf26bed Galaxy: Add option to convert file path to lowercase for Windows game files
Some games for Windows have inconsistent casing for their file path.
This option allows converting them to lowercase so we don't end up with
multiple directories because capitalization makes them unique on
case-sensitive filesystems.
2024-12-18 11:56:14 +02:00
Sude
70a4437c3c Galaxy: Add small files container support
Makes the downloader use small files container when installing games via Galaxy API.
Instead of downloading a lot of very small files we download a file that
contains all the small files and extract it when everything is downloaded.
2024-12-18 11:49:39 +02:00
Sude
1b14b1129c Improve completed file skipping for extras
Use old xml data when determining if extras are already complete
Also try to determine if local and remote file are the same version based on previous xml data and file size
2024-11-16 00:13:54 +02:00
Sude
8dce7a3f0b Change --wishlist into --list option
Remove --wishlist
Add --list wishlist
2024-11-15 19:33:10 +02:00
Sude
0e3c1572c1 CMake: Use config mode for finding Boost packages 2024-11-15 19:32:22 +02:00
Sude
d83ba7ff30 Add option to select network interface for operations 2024-11-15 19:31:40 +02:00
Sude
97bb4d8923 Galaxy: Select build by build id
Make it possible to select by build id
Tries to find build with build id first
If no build is found with specified build id then try to use it as build index
If build id or index is not valid then default to build index 0
2024-11-15 19:28:32 +02:00
Sude
b37dafb425 Galaxy: Don't consider blacklisted files to be orphaned
Forgot to change this for --galaxy-install in cc44c35aaa
2024-09-15 01:40:59 +03:00
Sude
de12af288c Update man page 2024-09-15 01:23:40 +03:00
Sude
cc44c35aaa Don't consider blacklisted files to be orphaned 2024-09-15 00:17:28 +03:00
Sude
1ebbb81b07 Fix item url in wishlist 2024-08-26 21:16:16 +03:00
Sude
5cdee34b99 Version 3.15 v3.15 2024-08-23 19:09:27 +03:00
Sude
c120e253d3 Update README.md 2024-08-23 19:02:20 +03:00
Sude
6556dc6a82 Add more checks to galaxyAPI::getPathFromDownlinkUrl 2024-08-22 21:50:23 +03:00
Sude
b30515bfea Check for errors in Util::htmlToXhtml 2024-08-22 18:59:41 +03:00
Sude
52b8bdc8fa Fix galaxyAPI::getPathFromDownlinkUrl with Fastly CDN urls
Fastly CDN urls don't contain query strings
2024-08-22 18:13:44 +03:00
Sude
b4c6638e19 Add option to force browser login 2024-08-22 13:09:51 +03:00
Sude
5c4b201873 Fix login check when redirected to embedded version of website 2024-08-22 13:07:04 +03:00
Sude
e5d2c87676 Galaxy: Refactor CDN priority handling
Make CDN url template handling more generic
Add option to list available CDNs
Change default Galaxy CDN priority to "edgecast,akamai_edgecast_proxy,fastly"
2024-08-22 13:05:50 +03:00
Sude
5b53cce83e Version 3.14 v3.14 2024-06-04 17:24:33 +03:00
Sude
b59a49ef0b Update man page 2024-06-04 17:20:25 +03:00
Sude
49692c48cb Update --galaxy-show-builds help text 2024-06-04 17:19:03 +03:00
Sude
1567c2a3c6 Use tidyBufInit to initialize buffer 2024-05-26 22:49:36 +03:00
Sude
ebdee25fe6 Fix libtidy settings 2024-05-26 22:32:25 +03:00
Sude
266c5817ba Change regex for invalid path in GalaxyAPI::fileJsonNodeToGameFileVector
Check also for path ending in "/securex" as some games return it for missing files
2024-05-23 22:38:54 +03:00
Sude
61490035bb Fix selecting Chinese language
GOG has started to use "zh-Hans" as language code for Chinese in some cases
2024-05-22 20:40:45 +03:00
Sude
0067da53d2 Version 3.13 v3.13 2024-05-18 21:40:45 +03:00
Sude
fd35a0a54f CMake: Throw fatal error when libtidy is not found 2024-05-15 13:59:32 +03:00
Sude
d6064bcbeb CMake: Bump minimum required version to 3.18.0 2024-05-15 13:57:26 +03:00
Sude
07eeff481c Update error message in Downloader::downloadFileWithId 2024-05-13 19:28:10 +03:00
Sude
761c3f14c5 Improvements to --download-file option
Allows downloading DLC files by extending file selection.
Files can be selected by using the name of dlc
--download-file "gamename/dlc_gamename/fileid"
2024-05-13 19:05:15 +03:00