Commit Graph

276 Commits

Author SHA1 Message Date
Sandy Carter
1eb2e8deaa Strip out protocol substring for file download 2015-08-14 21:48:55 -04:00
Sandy Carter
fe314869c1 Factor out protol string as a constant 2015-08-14 21:09:27 -04:00
Sude
6132b7a96c Add .sh to orphan check regex 2015-08-14 20:36:23 +03:00
Sude
b65084dd65 Remove --no-deb and --no-targz options
GOG no longer provides deb and tarball archives
2015-08-12 17:15:14 +03:00
Sude
ceef80167c Add support to ignore dlc count using game specific config with --list 2015-08-12 17:01:15 +03:00
Sude
64cae133cf Change path to look for game specific config files
Old path: $XDG_CONFIG_HOME/lgogdownloader/gamename.conf
New path: $XDG_CONFIG_HOME/lgogdownloader/gamespecific/gamename.conf
2015-08-12 16:53:25 +03:00
Sude
374453b806 Detect reCAPTCHA on login form 2015-08-12 16:47:17 +03:00
Sude
f51cca5dff Add options to login separately to website and API 2015-08-12 16:42:54 +03:00
Sude
4c6ac86619 Version 2.24 2015-07-11 14:51:11 +03:00
Sude
9db2b8f2b0 Use getFormattedErrorMessages instead of deprecated getFormatedErrorMessages 2015-07-06 06:59:54 +03:00
Sude
6e5a0870e8 Delete old cookies when using --login 2015-07-06 06:47:09 +03:00
Sude
011cd2c116 Merge https://github.com/erikfleischer/lgogdownloader 2015-07-06 06:45:22 +03:00
Erik Fleischer
fb23318d5a Fix --repair on 32 bit platforms for files > 2 GB. 2015-07-05 19:23:11 +02:00
Erik Fleischer
7e8f707846 Fixed segmentation fault on startup on 32 bit platforms.
Fixed downloading files > 2GB on 32 bit systems.
2015-07-05 15:50:16 +02:00
Erik Fleischer
9fbf791a78 Fixed createXML declaration. 2015-07-04 20:52:12 +02:00
Erik Fleischer
0d73445e28 Some more small changes to handle files > 2GB on 32bit platforms. 2015-07-04 20:22:08 +02:00
Erik Fleischer
23df30d7be Continued replacing size_t with uintmax_t in order to handle file larger than 2GB on 32 bit platforms. 2015-07-03 22:09:50 +02:00
Erik Fleischer
095492942e Replaced size_t with uintmax_t for file size data types. 2015-07-02 18:27:28 +02:00
Sude
3f7fbc5bd1 Show DLC gamename instead of base gamename in --status output for DLCs 2015-07-02 03:04:04 +03:00
Sude
64690d0368 Add status code for file size mismatch 2015-07-02 03:01:21 +03:00
Sude
84e8ab8dab Tell user to try --login if JSON parsing fails in Downloader::getGames 2015-07-01 04:03:27 +03:00
Sude
699c9f29a5 Show the real filesize with --status on incomplete downloads 2015-07-01 04:01:18 +03:00
Sude
c4c2f8cb6d Use std::stoull instead of std::stoi in Downloader::checkStatus 2015-06-29 23:48:55 +03:00
Sude
59faa40b4b Check for incomplete download when using --status
Fixes issue with --status when remote xml data is already downloaded but the download was incomplete
Downloader::getLocalFileHash returned the same file hash as Downloader::getRemoteFileHash which caused --status to report it as OK
2015-06-29 23:00:22 +03:00
Sude
de301d7e8c Better handling of connection issues
Assume that we have connection error and abort transfer with CURLE_OPERATION_TIMEDOUT if download speed is less than 200 B/s for 30 seconds
2015-06-28 07:38:39 +03:00
Sude
0f2268cb67 Use ".*" as default for --ignore-dlc-count 2015-06-21 17:25:45 +03:00
Sude
c722283022 Move game filtering from Downloader::getGameList to Downloader::getGames 2015-06-21 17:20:53 +03:00
Sude
9c80ed1d39 Implicitly set the default value for ignore-dlc-count option 2015-06-21 05:57:30 +03:00
Sude
2c02435157 Use correct language code for Brazilian Portuguese 2015-06-17 06:12:19 +03:00
Sude
cd5b79b3c9 Add support for Brazilian Portuguese 2015-06-15 04:26:51 +03:00
Sude
6d1c05294d Set language and platform constants by using left shift
Makes the code easier to understand
2015-06-15 04:23:43 +03:00
Sude
b3bf1be2b4 Merge https://github.com/huancz/lgogdownloader 2015-06-05 22:28:40 +03:00
Petr Běhan
3de1c8332e better startup time when using --game regex
... especially when using generic --ignore-dlc-count='.*'

previously, lgogdownloader would fetch game details for every game
that indicated that it has DLCs. Which were all of them when used with
--ignore-dlc-count - potentialy hundreds of http queries and cause of very slow
startup with larger accounts. Regardless of what --game regex said.

After the change, only initial list of all games is fetched, and then details
for games that both the user is interested in AND they are suspected of
having DLC. So it should help with startup time even when user doesn't use
--ignore-dlc-count option.
2015-06-04 16:25:21 +02:00
Sude
834e6baa7a Add options to ignore DLC count information
Ignoring DLC count information helps in situations where the account page doesn't provide accurate information about DLCs.
--ignore-dlc-count sets regular expression filter for games to ignore DLC count information.
Game specific option "ignore-dlc-count" can be used to ignore DLC count for specific game.
2015-06-01 10:45:30 +03:00
Sude
e6e39390a3 Makefile: Add order-only prerequisite to OBJ_RELEASE and OBJ_DEBUG 2015-05-31 20:25:28 +03:00
Sude
13e09a3a2d Revert "Merge https://github.com/0-wiz-0/lgogdownloader"
This reverts commit 043e5534bb, reversing
changes made to 584b953bd7.
2015-05-31 20:23:57 +03:00
Sude
043e5534bb Merge https://github.com/0-wiz-0/lgogdownloader 2015-05-31 19:34:44 +03:00
Thomas Klausner
90a2dd2754 Some object files require directories to exist.
Add necessary dependencies to fix parallel builds.
2015-05-31 19:34:24 +03:00
Sude
584b953bd7 Skip extras without filename 2015-05-31 19:07:21 +03:00
Sude
0230a3517d Make Downloader::repairFile create new XML data on filesize mismatch 2015-05-30 12:42:10 +03:00
Sude
8caaf30f16 Version 2.23 2015-05-17 19:04:59 +03:00
Sude
e8a8b1dd5f Fix error with login when cookies don't exist but API login works 2015-05-17 18:53:47 +03:00
Sude
c3916b2c9a Add simple login check as a fallback to current HTTP login check 2015-05-17 18:48:58 +03:00
Sude
61cc4187e6 Wishlist option should not be saved to config file 2015-05-17 18:47:04 +03:00
Sude
6a8d21b5f7 Version 2.22 2015-05-16 23:52:52 +03:00
Sude
6bf76db1da Some wishlist changes 2015-05-14 14:39:01 +03:00
Sude
29e6b6290c Add option to show wishlist 2015-05-13 17:13:30 +03:00
Sude
3e0c36beb5 Check if json has serials node and check if it is empty
Fixes downloader creating serials.txt even if the game didn't have any serials
2015-05-13 15:04:49 +03:00
Sude
5af5a286e7 Fix "Type is not convertible to string" error in Downloader::getGames
On some systems the integer to string conversion caused std::runtime_error "Type is not convertible to string"
2015-05-12 22:04:36 +03:00
Sude
8c1ee17d4b Install debug build if it has been built 2015-05-12 16:57:09 +03:00