Commit Graph

494 Commits

Author SHA1 Message Date
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
Sude
83ef937089 Allow unrecognized options in config file 2014-09-05 14:02:08 +03:00
Sude
b33ffbcee3 Add PREFIX and MANPREFIX to Makefile 2014-09-04 20:09:45 +03:00
Sude
6ebd897866 Fix login issues caused by case sensitivity 2014-09-04 20:00:53 +03:00
Sude
a5b1840e4d Better login check
Allows user to login with username instead of email
Print some info on failed login with debug build
2014-09-04 18:11:14 +03:00
Sude
10233291eb Version 2.17 2014-08-30 11:13:53 +03:00
Sude
cd2d1f22f8 Added --cover-list option to set url for cover list 2014-08-28 16:00:24 +03:00
Sude
3e12ddafb3 Explicitly set the file names in Makefile for install 2014-08-28 13:14:30 +03:00
Sude
53685210bb Makefile changes 2014-08-28 12:58:52 +03:00
Sude
0a20ef9ee7 Use remote xml data for patches 2014-08-28 12:51:02 +03:00
Sude
17dffe10f3 Fix language check for patches in Downloader::listGames 2014-08-27 20:22:05 +03:00
Sude
d63598a142 Make downloader work with the new layout 2014-08-27 19:57:20 +03:00
Sude
7c9ba84a1b Merge branch 'packaging' of https://github.com/carstene1ns/lgogdownloader 2014-08-23 11:11:04 +03:00
Carsten Teibes
6fef9e11d3 Add explicit dependency to install target to ensure all needed files have been built 2014-08-23 02:25:03 +02:00
Carsten Teibes
bb806fe2b6 Add DESTDIR variable to Makefile to allow easier packaging 2014-08-23 02:06:42 +02:00
Sude
a51fb3ea26 Use boost regex in api if gcc/g++ < 4.9.0 2014-08-21 17:17:34 +03:00
Sude
6fa03e1219 Version 2.16 2014-08-21 11:49:11 +03:00
Sude
5dd8332b9e Add --no-deb and --no-targz command line options 2014-08-18 07:59:04 +03:00
Sude
11be8a79cd Add .pkg to to orphan check regex
.pkg is used for Mac patches
2014-08-18 07:49:22 +03:00
Sude
6eba3c76cc Use update/notification flags for patches 2014-08-18 07:47:52 +03:00
Sude
214a843e2c Change --no-cover to --cover
Don't download covers by default
2014-08-15 16:51:48 +03:00
Sude
527ff399b3 Update CodeBlocks project file 2014-08-13 02:56:22 +03:00
Sude
6300ab66ca Makefile changes 2014-08-13 02:44:31 +03:00
Sude
1d221fee9f Add blacklist support for --list-details 2014-08-13 02:41:15 +03:00
Sude
a3673a58a4 Use regex to find patch and language pack nodes in API response 2014-08-09 19:15:51 +03:00
Sude
ffab972430 Increased the maximum patch id number
Some games had patch id numbers that were higher than the current maximum
2014-08-09 04:32:46 +03:00
Sude
705bde3f6f Add support for some game specific settings 2014-08-01 20:34:44 +03:00
Sude
5102f812a4 Make sure that large file support is enabled on 32 bit systems 2014-08-01 20:32:29 +03:00