Commit Graph

48 Commits

Author SHA1 Message Date
Sude
b3792554bf Added curlSetOpt() method to API for setting curl options 2013-06-28 16:06:08 +03:00
Sude
9f715aa2d1 Enable --limit-rate for 32-bit systems 2013-06-28 15:49:00 +03:00
Sude
fe70090b74 Added --timeout option to set timeout for connection phase 2013-06-10 15:15:08 +03:00
Sude
b1db888094 Version 2.6 2013-06-08 00:51:30 +03:00
Sude
f1a138e6bf Simplify code by using std::to_string 2013-06-08 00:32:31 +03:00
Sude
d8272e30f8 Set some curl options in Downloader::init()
Removes some duplicate code
Downloader::getResponse restores write function to Downloader::writeData
2013-06-08 00:25:48 +03:00
Sude
eed1845428 Detect errors on login 2013-06-01 17:22:37 +03:00
Sude
f3ba069f50 Don't try to list extras if there aren't any 2013-05-23 22:01:57 +03:00
Sude
5b2c4ae00a Minor code cleanup, use std::to_string instead of stringstream 2013-05-23 16:04:31 +03:00
Sude
f11ff9e7e4 Added support for downloading patches 2013-05-15 01:28:37 +03:00
Sude
1c8f1d9885 Version 2.5 2013-05-04 19:49:49 +03:00
Sude
7a9dd503a1 Made API config private member 2013-05-04 19:46:42 +03:00
Sude
bc787e5f6c Some code cleanup for repairFile function 2013-04-29 11:06:15 +03:00
Sude
01430a5735 Code and comment cleanup 2013-04-28 18:46:37 +03:00
Sude
2a682ff666 Fix bug in language selection 2013-04-25 12:12:37 +03:00
Sude
e27c585ed7 Verify authenticity of SSL certificates by default
Added option --unsecure to disable authenticity verification
2013-04-25 12:05:17 +03:00
Sude
8b0de12fe4 Forgot to change a comment in 9ee5f75 2013-04-25 10:56:53 +03:00
Sude
9ee5f75bfb Rename global constants to better describe what they mean 2013-04-25 10:48:10 +03:00
Sude
1593c58a01 Add trailing slash to API urls 2013-04-24 14:39:00 +03:00
Sude
0ea07dc6f7 Version 2.4 2013-04-11 13:49:24 +03:00
Sude
d4db79e783 Added version detection before resuming download
Tries to detect if remote file is different from local file before resuming
Remote XML data is saved when download is started
2013-04-08 13:43:11 +03:00
Sude
9d59b8f5cf Always close file in repair 2013-04-06 19:35:20 +03:00
Sude
cfbc61d1f7 Formatting changes to repair 2013-04-06 05:50:44 +03:00
Sude
f3f26d4da3 Added redownload option to repair. 2013-04-05 21:19:03 +03:00
Sude
e0c53633b4 Some changes version string handling 2013-04-04 17:51:28 +03:00
Sude
55134979fb Update the url for WTFPL license 2013-03-24 23:56:57 +02:00
Sude
e2253ebeca Partially revert "Add language to installer path if it is missing"
Reverts some changes from 97e948abb4.

Revert automatically adding the language code to filename:
http://gog.com/forum/general/introducing_the_beta_release_of_the_new_gogcom_downloader/post1483
Keep language in gameFile class because it may be useful later.
2013-03-24 00:23:40 +02:00
Sude
3131b00589 Use global constants to simplify adding support for more languages/platforms 2013-03-23 20:12:49 +02:00
Sude
c40b4d96fe Added support for more languages
Chinese, Czech, Spanish, Hungarian, Italian, Japanese and Turkish
2013-03-23 16:07:42 +02:00
Sude
97e948abb4 Add language to installer path if it is missing 2013-03-23 15:42:09 +02:00
Sude
d2566de2f4 version 2.3 and some changes to Makefile 2013-03-19 19:33:55 +02:00
Sude
fab2ab5b94 whitespace fix 2013-03-16 23:35:57 +02:00
Sude
5ad708e5b6 Use the new "#name" variable in the API for installers 2013-03-16 23:21:01 +02:00
Sude
6aa24207c3 --verbose now also sets curlhandle in API to verbose 2013-03-16 22:33:03 +02:00
Sude
57415af1c1 increase the connection timeout to 10 seconds in API 2013-03-16 22:22:05 +02:00
Sude
dab6bd937e allow only 1 redirect when POSTing login info 2013-03-16 21:48:52 +02:00
Sude
53f82e5c96 inform the user if login was successful 2013-03-16 21:16:58 +02:00
Sude
8e1c6f81e4 return from Downloader::init() immediately after login 2013-03-16 21:04:55 +02:00
Sude
dd35019c45 Increase connection timeout to 10 seconds.
Don't convert POST requests into GET requests when following redirects (respect RFC 2616/10.3.2)
2013-03-16 20:48:35 +02:00
Sude
7bd77a7dfe Don't list extras when doing update check 2013-03-16 05:00:55 +02:00
Sude
2e2e87a76b Fix bug in update check and fix cover download condition 2013-03-16 04:56:32 +02:00
Sude
25055a03c8 add game details only once to the list of games when doing update check 2013-03-16 04:08:30 +02:00
Sude
97273e8747 Fixed a typo that caused update flag to be set true for all installers 2013-03-16 03:47:38 +02:00
Sude
580f080aaf Show update status for installers when listing details 2013-03-16 03:41:55 +02:00
Sude
b910d4bcb9 Update check has priority over downloading or listing files 2013-03-16 03:22:45 +02:00
Sude
14432fb9aa Added listing and automatically downloading updated files 2013-03-16 03:20:16 +02:00
Sude
90c0b2be79 Use static memory allocation for extras and installers in gameDetails 2013-03-15 23:33:53 +02:00
Sude
2d045c4052 Initial commit 2013-03-15 22:46:16 +02:00