Commit Graph

371 Commits

Author SHA1 Message Date
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
Sude
ffaed76c34 Version 2.19 2014-10-21 13:36:20 +03:00
Sude
b8d13514b7 Fix the regex in Downloader::HTTP_Login
The regex in ec79a18 was greedy and matched more than was necessary
Change the regex to non-greedy to fix this
2014-10-20 22:41:10 +03:00
Sude
ec79a18cf5 Fix login
GOG made some changes to their website which caused the regex in Downloader::HTTP_Login to match wrong auth url.
2014-10-19 18:33:23 +03:00
Sude
d0986542ef Don't get game list when using cache unless --list was used 2014-10-16 19:14:22 +03:00
Sude
eef4712b6e Make sure that cache directory exists 2014-10-16 11:31:08 +03:00
Sude
9235ee8b4a Add support for caching game details
Helps with large libraries when running the downloader multiple times.
Getting game details for many games takes a long time. Caching the game details makes the process much faster for subsequent runs.

Game details are cached to "$XDG_CACHE_HOME/lgogdownloader/gamedetails.json"
--update-cache creates and updates the cache.
--use-cache enables loading game details from cache.
--cache-valid specifies how long cached game details are considered valid
2014-10-16 11:05:57 +03:00
Sude
a6da2e5bea Set filepath for language packs
I forgot to set the filepath for language packs which caused some problems
2014-10-11 02:44:22 +03:00
Sude
6b0a39774a Better handling of empty %platform% in Util::filepathReplaceReservedStrings 2014-10-11 02:40:29 +03:00
Sude
b954df2bbc Version 2.18 2014-09-21 14:37:29 +03:00
Sude
8e29866870 Append date to renamed files 2014-09-20 15:35:56 +03:00
Sude
5f7d04334f Use current directory if directory wasn't specified 2014-09-19 23:07:16 +03:00
Sude
5635909e20 Add support for setting subdirectories
Allows user to specify subdirectories for games, installers, extras, patches, language packs and dlc
2014-09-19 22:46:03 +03:00
Sude
810506b74b Create filepaths in gameDetails class
Add makeFilepaths method to gameDetails class
Add setFilepath and getFilepath methods to gameFile class
2014-09-19 21:08:46 +03:00
Sude
7a00b59345 Move gameFile and gameDetails classes to their own files 2014-09-19 20:23:21 +03:00
Sude
4d404fc7df Rename old file instead of deleting it during --repair --download 2014-09-17 13:05:04 +03:00
Sude
7a15a93676 Change --report option to allow setting the filename of report 2014-09-17 12:41:01 +03:00
Sude
4dc8f937f2 Merge branch 'master' of https://github.com/nramsbottom/lgogdownloader 2014-09-17 12:36:59 +03:00
Neil Ramsbottom
1097e0758d Fixed spelling mistake in message displayed when downloading files. 2014-09-17 01:53:44 +02:00
Sude
1394888920 Merge branch 'master' of https://github.com/skitt/lgogdownloader 2014-09-12 16:27:21 +03:00
Stephen Kitt
a6eaeb1a5b Avoid touching $HOME when displaying help or version
Currently any execution of lgogdownloader touches $HOME, even if the
user only requested help or the version number. This fixes main() to
handle --help and --version before doing anything to the filesystem.

This also helps some build environments where $HOME is undefined
(e.g. the Debian build platform).

Signed-off-by: Stephen Kitt <steve@sk2.org>
2014-09-11 23:38:23 +02:00
Sude
55bc881d11 File hashing changes to Util::createXML
Update file hash in the same loop that chunk hashes are calculated
This gives the user better indication of the hashing progress
2014-09-10 16:16:04 +03:00
Sude
cba5fb928a Make Downloader::HTTP_Login print some more info 2014-09-10 13:46:24 +03:00
Sude
b23c9ed27d Only list games that support the platforms specified with --platform 2014-09-07 23:53:26 +03:00
Sude
0d39bcb460 Add platform info to gameFile class 2014-09-07 23:09:08 +03:00
Sude
369e8bb10b Add --no-cover option back
Used to override --cover option.
2014-09-05 20:25:40 +03:00