Commit graph

26 commits

Author SHA1 Message Date
wiz
7ce9971242 Updated lgogdownloader to 2.28.
LGOGDownloader 2.28
- Fixed compiling with JsonCpp 1.7.1
- Moved GOG website related members of Downloader class to new Website class
* Downloader::HTTP_Login --> Website::Login
* Downloader::getGames --> Website::getGames
* Downloader::getFreeGames --> Website::getFreeGames
* Downloader::getGameDetailsJSON --> Website::getGameDetailsJSON
* Getting wishlist details was split from Downloader::showWishlist to Website::getWishlistItems function
- Moved login checks from the login function to their own functions
- Added function to check if user is logged in to GOG website
* Website::IsLoggedIn
- Changed gameFile format and gamedetails cache format
* gameFile now contains gamename and file type info
* Game details cache format has been changed to match gameFile changes
* Cache has a new "gamedetails-cache-version" field that can be used to detect cache format changes
- Fixed downloading language packs with file id
- Started using CURLOPT_XFERINFOFUNCTION instead of deprecated CURLOPT_PROGRESSFUNCTION
* libcurl >= 7.32.0 is required
2016-05-08 09:13:13 +00:00
joerg
6e9c0d4880 With newer jsoncpp interface, the iterator has to be constant. 2016-05-05 22:06:39 +00:00
wiz
4706cf8abe Update lgogdownloader to 2.27:
LGOGDownloader 2.27
- Changed build system to CMake (patch by: Sandy Carter)
- Fixed crash after login
- Added option to set automatic XML creation in config file
* --automatic-xml-creation
- Improved game specific config options
* Directory options can be overriden in game specific config file
* "platform" and "language" options allow using string to set them. Use "+" as separator to combine values and "," as separator to set priority.
* For example: this allows setting "language" to English, German and French with "en+de+fr" which is much easier to understand than setting it to "7"
- Improvements to orphan detection (patch by: Thomas J. Moore)
* blacklist applies to installed files only; use ignorelist for orphans
* blacklisted but present items are orphans, as they should be
* use exact matching for file paths: files in wrong location are orphans
* See man page for more details on how to use ignorelist
- Apply blacklist to status checker to avoid some spurious ND messages (patch by: Thomas J. Moore)
- Use cerr for password prompts, error messages, rolling status messages, and other stuff that shouldn't clutter saved stdout. (patch by: Thomas J. Moore)
- Reduce the amount of HTTP requests
* This also slightly speeds up getting game details for games with DLC
- Added option to save changelogs when downloading
* --save-changelogs
- Added support for two-step login
2016-03-13 08:49:31 +00:00
jperkin
17661ff9a5 Bump PKGREVISION for security/openssl ABI bump. 2016-03-05 11:27:40 +00:00
agc
efd9ad4549 Remove duplicate SHA512 digests that crept in. 2015-11-04 17:41:15 +00:00
agc
002d349f92 Add SHA512 digests for distfiles for games category
Problems found locating distfiles:
	Package blokus: missing distfile blokus-1.1.tar.gz
	Package crossfire-client: missing distfile crossfire-client-images-1.11.0.tar.gz
	Package dungeon: missing distfile dungeon-gdt-glk.tar.gz
	Package gate88: missing distfile Gate88_Mar19_05.tar.gz
	Package gnuchess4: missing distfile gnuchess-4.0.pl80.tar.gz
	Package ioquake3-pk3: missing distfile quake3-latest-pk3s.zip
	Package rollemup: missing distfile Rollemup.tar.gz
	Package tscp: missing distfile tscp181.zip
	Package xbat: missing distfile xev111.tar.gz
	Package xgalaga: missing distfile xgalaga-2.0.34.tar.gz
	Package xrick: missing distfile xrick-021212.tgz
	Package xskat: missing distfile xskat-cards.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 20:56:42 +00:00
wiz
5c061fe4ab Update lgogdownloader to 2.26:
LGOGDownloader 2.26
- Check that stdin is a tty before reading (patch by: Stephen Kitt)
- Added version string and number to cached game details
- Fixed priority handling for DLCs
- Combined priority handling with --platform and --language options
* Use "+" as separator to combine values and "," to set priority
* Syntax for --platform and --language options was changed: see --help or man page for details
- Added support for new language: Slovak
- Use include/exclude options to choose what files to download
* --cover, --no-cover, --no-installers, --no-extras, --no-patches, --no-language-packs and --no-dlc options have been removed
* Default: --include "all" --exclude "covers"
* See --help for available options
2015-10-18 23:09:32 +00:00
wiz
8b04e122da Update to 2.25:
LGOGDownloader 2.25
- Added options to login separately to website and API
* --login-api
* --login-website
* Makes it possible to use cookies exported from browser (helps if
  user gets reCAPTCHA on login form)
- Added detection of reCAPTCHA during login
- Changed path for game specific config files
* Game specific config files are now located in
  $XDG_CONFIG_HOME/lgogdownloader/gamespecific/gamename.conf
- Added support for ignoring dlc count information using game
  specific config file with --list option
- Removed --no-deb and --no-targz options
* GOG no longer provides deb and tarball archives
- Implemented gogdownloader:// protocol download (patch by: Sandy
  Carter)
* Implements the following commands:
* lgogdownloader gogdownloader://GAME_NAME/FILE_ID
* lgogdownloader --download-file gogdownloader://GAME_NAME/FILE_ID
* lgogdownloader
  gogdownloader://GAME_NAME_1/FILE_ID_1,GAME_NAME_2/FILE_ID_2,...
* lgogdownloader --download-file
  gogdownloader://GAME_NAME_1/FILE_ID_1,GAME_NAME_2/FILE_ID_2,..
- Added option to specify output filename (patch by: Sandy Carter)
* Adds -o and --output-file option to specify path and downloaded
  file name when using --download-file
- Removed tarball specific code from API implementation
- Fixed priority handling with duplicate values
- Added support for using strings to set language, language-priority,
  platform and platform-priority instead of using numbers
- Fixed retry on operation timeout
2015-09-13 07:32:49 +00:00
wiz
0981a9068c Remove unused file. 2015-07-13 15:13:29 +00:00
wiz
dd79c21bbf Update to 2.24:
LGOGDownloader 2.24
- Downloader::repairFile now creates new XML data on filesize
  mismatches
- Added check for extras missing filenames
* Extras without filename are skipped
- Added order-only prerequisite to OBJ_RELEASE and OBJ_DEBUG in
  Makefile
- Added option to ignore DLC count information
* --ignore-dlc-count option sets regular expression for games to
  ignore DLC count
* Game specific option "ignore-dlc-count" can be set in
  $XDG_CONFIG_HOME/lgogdownloader/gamename.conf
- Better startup time when using --game regex especially when using
  generic --ignore-dlc-count='.*' (patch by: Petr BÄhan)
- Added support for Brazilian Portuguese
- Platform and language constants are now set using left shift to
  make code easier to understand
- Better handling of connection issues
* Assume that we have connection error and abort/retry transfer if
  download speed is less than 200 B/s for 30 seconds
- Fixed issue with incomplete files when using --status option
- JSON parsing failure in Downloader::getGames is assumed to be
  caused by expired cookies and user is told to try --login
- Fixed handling large files on 32 bit platforms (patch by: Erik
  Fleischer)
- The downloader now deletes old cookies before login attempt when
  using --login
* Helps with some login issues
- Json::Reader::getFormattedErrorMessages is now used instead of
  deprecated getFormatedErrorMessages
* jsoncpp >= 0.6.0 required
2015-07-12 08:32:08 +00:00
wiz
dfdba4743d Update to 2.23:
LGOGDownloader 2.23
- Option to show wishlist is no longer saved to config file
- Added simple login check as a fallback to current complex HTTP login check
* This fallback method should work even if GOG changes the site layout as long as account page location remains the same
- Fixed error with login when cookies didn't exist but API login worked because config.cfg contained valid secret and token

LGOGDownloader 2.22
- Added option to download files by using file id
* --download-file "gamename/fileid"
- Fixed multiple DLCs when using cache (patch by: Ismo Toijala)
- Made progressbar display 10 second average download speed instead of average for the whole download
- Added support for new account page layout
- Added --wishlist option to show wishlist
- Makefile change: "make install" will now install debug build if it has been built
2015-05-27 06:49:59 +00:00
wiz
518c32e5af Update to 2.21:
- Make sure that file is regular file when getting local hash
- Fixed crash in Downloader::checkStatus
- Ignore extras without filename
  These are usually extras that haven't been released yet so they
  can't be downloaded anyway
- Changed jsoncpp include path from <jsoncpp/json/json.h> to
  <json/json.h>
- Added support for saving serial keys
  Serials are saved to "serials.txt" when using --save-serials with
  --download and listed in the output when used with --list-details
- Show more info on HTTP error in API::getResponse when using debug
  build
- Added option to skip fast platform detection
  --no-platform-detection skips the initial fast platform detection
  and detects the supported platforms from game details which is
  slower but more accurate.
  Useful in case platform identifier is missing for some games in
  the game shelf.
- Fixed downloader skipping some files because of uncleared API
  error state
- Show url in http error messages
2015-04-19 18:08:00 +00:00
adam
4606c07235 Revbump after updating devel/boost-libs 2015-04-17 15:52:56 +00:00
wiz
e4994afc46 Try making this parallel jobs safe for joerg. 2015-01-10 20:25:57 +00:00
joerg
775b36c4e9 Not MAKE_JOBS_SAFE. 2015-01-09 14:29:10 +00:00
wiz
e0d10ab04e Update to 2.20:
LGOGDownloader 2.20
- Added priority handling of platforms and languages (patch by: Gael Le Mignot)
- Made config and cookie files only readable/writable by the owner
- Fixed using --update-cache with --use-cache
- Fixed regex alias "all" for cached details
- Made the downloader continue on API error instead of breaking off in Downloader::getGameDetails
- Made progress bar adapt to terminal width
* Progress bar gets smaller if there isn't enough space to display the full progress bar
* Progress bar isn't drawn if the terminal window is too small
2014-12-07 09:20:19 +00:00
adam
8e3b70e314 Revbump after updating boost 2014-11-07 19:39:24 +00:00
wiz
a962a83fb4 Update to 2.19:
- Better handling of empty %platform% in Util::filepathReplaceReservedStrings
- Fixed setting filepath for language packs
* I forgot to set the filepath for language packs which caused some problems
- Added support for caching game details
* --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
- Fixed login issue
* Regex in Downloader::HTTP_Login matched wrong auth url after GOG
made some changes to website
2014-10-26 08:43:32 +00:00
wiz
5b36aaf5c8 Update to 2.18:
LGOGDownloader 2.18

- Added better login check
* Allows user to login with username instead of email
* Prints some info on failed login with debug build
- Fixed login issues caused by case sensitivity
- Added PREFIX and MANPREFIX to Makefile
- Allowed unrecognized options in config file
- Added --no-cover option back
- Listing games with --list now only displays games that support the platforms specified with --platform
- Made Downloader::HTTP_Login print some more info
- File hashing changes to Util::createXML
* File hash is updated in the same loop that chunk hashes are calculated (gives the user better indication of the hashing progress)
- Avoid touching $HOME when displaying help or version (patch by: Stephen Kitt)
* This fixes main() to handle --help and --version before doing anything to the filesystem
- Fixed spelling mistake in message displayed when downloading files (patch by: Neil Ramsbottom)
- Changed --report option to allow setting the filename of report
- Old files are now renamed instead of deleted during --repair --download
- Renamed old files now contain date in filename (filename.ext.YYYYMMDDTHHMMSS.old where T is the date-time separator)
- Added support for setting subdirectories
* Allows user to specify subdirectories for games, installers, extras, patches, language packs and dlc
* You can use templates "%gamename%", "%platform%" and "%dlcname%" which are replaced by the relevant info
* New options: --subdir-installers, --subdir-extras, --subdir-patches, --subdir-language-packs, --subdir-dlc, --subdir-game
2014-10-02 09:27:23 +00:00
wiz
b89547653c Update to 2.17:
LGOGDownloader 2.17
- Made the downloader work with the new GOG layout
- The API implementation now uses boost regex if gcc/g++ version
   < 4.9.0
* Fixes issues caused by incomplete std::regex support on earlier
  versions
- Makefile changes by Carsten Teibes
* Add DESTDIR variable to Makefile to allow easier packaging
* Add explicit dependency to install target to ensure all needed
  files have been built
- The downloader now uses remote xml data for patches
- Explicitly set the file names in Makefile for install
- Fixed language check for patches in Downloader::listGames
- Added --cover-list option to set url for cover list
* Default: https://sites.google.com/site/gogdownloader/covers.xml
2014-08-31 07:15:53 +00:00
wiz
6541b685c2 Update to 2.16: GOG has Linux support, now this tool has it too. 2014-08-23 06:13:33 +00:00
adam
72ed0307eb Revbump after boost-libs update 2014-08-13 10:57:32 +00:00
wiz
de6fe9a0e4 Update to 2.15: GOG supports Linux, now lgogdownloader does too. 2014-07-25 23:35:21 +00:00
jperkin
c75bf25dba Recursive revbump for textproc/tinyxml update. 2014-07-08 14:59:40 +00:00
wiz
9d1f0731c6 Update to 2.13. Replace two patches with SUBST statements to make updates
easier.

LGOGDownloader 2.13
- Fixed some characters in extra filenames by url decoding the links
- Patches now use duplicate handler
- Added support for DLCs
- Fixed segfault when downloading non-dlc patches (patch by: Geoffrey Biggs)
- Fixed a login issue
- Downloader::getResponse now prints more verbose error messages
- Use secure.gog.com to get "buk" value for login form
- Check orphans regex matches the file path instead of filename
- Fixed using local xml for hashes in Downloader::downloadFile
- Use remote XML for languagepacks (patch by: Ismo Toijala)
- Only hash file if remote XML is available (patch by: Ismo Toijala)
- Added retry support to Downloader::getResponse
- Subdirectories for DLCs are created based on the DLC gamename
* gamename/dlc/dlc_gamename
- Added --wait option to set delay for http requests
- Removed language id/code from urls because GOG no longer requires it
2014-07-06 14:34:15 +00:00
wiz
bde25076fa Import lgogdownloader-2.12 as games/lgogdownloader.
LGOGDownloader is unofficial downloader to GOG.com for Linux users.
It uses the same API as the official GOGDownloader.
2014-04-19 08:19:31 +00:00