Commit Graph

246 Commits

Author SHA1 Message Date
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
Sude
50e1e34fba Add missing line ending to serial 2015-05-12 15:05:28 +03:00
Sude
cd0a829d59 Don't use the iterator directly in Util::getDownloaderUrlsFromJSON 2015-05-12 13:56:32 +03:00
Sude
c264f69eae Get game details json for dlcs later if needed
Speeds up getting game details when dlcs don't need the info from json data
2015-05-12 13:53:32 +03:00
Sude
b5cdf10078 Support new account page layout 2015-05-12 02:19:16 +03:00
Sude
21e6c6119d Make progressbar display 10 second average download speed 2015-04-27 16:51:17 +03:00
Sude
43ee08227c Merge branch 'dlc-fix' of https://github.com/itoijala/lgogdownloader 2015-04-23 21:10:54 +03:00
Ismo Toijala
9727b3f5c3 Fix multiple DLCs when using cache 2015-04-23 19:43:54 +02:00
Sude
d97849818e Add option to download files using file id 2015-04-11 16:42:10 +03:00
Sude
84c3385e87 Version 2.21 2015-04-07 13:45:56 +03:00
Sude
671d3ed056 Show url for http error messages 2015-04-06 16:16:26 +03:00
Sude
2fc7fa88a7 Fix skipping some files due to uncleared API error state
Sometimes when trying to get XML data failed and set API error it was never cleared.
This caused some files being skipped due to API still being in error state.
2015-03-28 14:16:00 +02:00
Sude
3834c1e612 Add option to skip fast platform detection
Useful in case platform identifier is missing for some games in the game shelf.
Using --platform with --list doesn't work when using --no-platform-detection
2015-03-28 12:52:41 +02:00
Sude
a708f3d5b8 Show response of HTTP error in API::getResponse when using debug build 2015-03-19 10:02:29 +02:00
Sude
216cfaedfe Add support for saving serial numbers 2015-03-19 09:50:50 +02:00
Sude
f039db5c65 Change jsoncpp include path 2015-01-22 09:22:48 +02:00
Sude
525985d3fb Ignore extras without filename 2015-01-05 17:02:55 +02:00
Sude
ae91c28cb0 Possible fix for crash in Downloader::checkStatus 2015-01-05 06:29:32 +02:00
Sude
7d5874d312 Make sure that file is regular file when getting local hash 2014-12-31 06:14:55 +02:00
Sude
61e0c31775 Version 2.20 2014-12-06 20:10:13 +02:00
Sude
d04cfbae1f Make progress bar adapt to terminal width 2014-11-27 23:20:22 +02:00
Sude
24105b07fe Forgot to clear API error in Downloader::getGameDetails 2014-11-22 16:07:51 +02:00
Sude
86d4e142bd Continue on API error instead of breaking off in Downloader::getGameDetails 2014-11-22 15:59:06 +02:00
Sude
c5a0a3b994 Revert "Fix login"
This reverts commit fb6c4496a5.
2014-11-19 23:59:27 +02:00
Sude
fb6c4496a5 Fix login 2014-11-19 22:47:42 +02:00
Sude
6751205ff3 Fix regex alias "all" for cached details 2014-11-17 16:28:43 +02:00
Sude
6bd51c9ed3 Fix using --update-cache with --use-cache 2014-11-17 15:32:06 +02:00
Sude
cb2395b0ba Make config and cookie files only readable/writable by current user 2014-10-28 21:03:02 +02:00
Sude
bddde5b0da Merge branch 'master' of https://github.com/kilobug42/lgogdownloader 2014-10-28 13:38:36 +02:00
Gael Le Mignot
a46fad588b First working version of priority handling 2014-10-26 10:47:13 +01:00
Gael Le Mignot
1204ea247e Preparation work on priority mode: config file parsing, documentation. 2014-10-25 17:57:04 +02:00