It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
I downloaded the script from the xenon link in the first post. It worked fine, but it didn't download additional content, so after a few hours (gasp!), I found it comes down to a single vs. a double quote in this line:


ADDITIONAL_CONTENTS_LIST=`echo "$MYACCOUNT_PAGE" | grep $ADDITIONAL_CONTENTS_LIST_REGEX | cut -f2 -d\"`

Changing the last bit into -d2\'` makes it work fine.
avatar
hyperagathon: I downloaded the script from the xenon link in the first post. It worked fine, but it didn't download additional content, so after a few hours (gasp!), I found it comes down to a single vs. a double quote in this line:


ADDITIONAL_CONTENTS_LIST=`echo "$MYACCOUNT_PAGE" | grep $ADDITIONAL_CONTENTS_LIST_REGEX | cut -f2 -d\"`

Changing the last bit into -d2\'` makes it work fine.
Wich was the game you were downloading?
avatar
hyperagathon: I downloaded the script from the xenon link in the first post. It worked fine, but it didn't download additional content, so after a few hours (gasp!), I found it comes down to a single vs. a double quote in this line:


ADDITIONAL_CONTENTS_LIST=`echo "$MYACCOUNT_PAGE" | grep $ADDITIONAL_CONTENTS_LIST_REGEX | cut -f2 -d\"`

Changing the last bit into -d2\'` makes it work fine.
avatar
WrathOfTheAngels: Wich was the game you were downloading?
I tried three - P:T, BG2 and Lure of the Temptress, but I don't think that matters very much, since all of the links to files are in single quotes.
This script is fantastic! i used it in the last few week to download my huge gog catalog (124 titles...) and it worked flawlessly...

except in the last week or 2 it stopped functioning... or to be more precise it doesn't log in anymore :(

i tried to cancelling the cookies file, it re ask me for mail and pwd but after inserting them it try to log and fail :(

i still had no time to try to investigate it more than that, but certainly it's not a wrong or changed pwd or mail :)
avatar
mirkobern: This script is fantastic! i used it in the last few week to download my huge gog catalog (124 titles...) and it worked flawlessly...

except in the last week or 2 it stopped functioning... or to be more precise it doesn't log in anymore :(

i tried to cancelling the cookies file, it re ask me for mail and pwd but after inserting them it try to log and fail :(

i still had no time to try to investigate it more than that, but certainly it's not a wrong or changed pwd or mail :)
It's a certificate problem. Will tell you what to do asap. Now I'm really really busy
Hey,

I've tried both, the GUI version and the original script. Neither one of them seem to be able to log in. The GUI version doesn't seem to timeout, it just keeps trying to connect, while the original script returns a message saying that the login information was wrong. Has something changed that broke the script, or am I just doing something very wrong?

Thanks for the great program!
avatar
Dahack: Hey,

I've tried both, the GUI version and the original script. Neither one of them seem to be able to log in. The GUI version doesn't seem to timeout, it just keeps trying to connect, while the original script returns a message saying that the login information was wrong. Has something changed that broke the script, or am I just doing something very wrong?

Thanks for the great program!
from the response above seem really that a change broke something, but seem remediable...

but we need to wait a little for a clarification and patch, after all it's not a gog supplied program, so no pretenses of quick assistance :)
Just downloaded the linux sh script, didn't work.
A bit of fiddling got it working for me:
Around line 46 change it to look like this:
mkdir -p "$GOG_DOWNLOADER_DIR"
wget -O /dev/null -o /dev/stdout --save-cookie "$PATH_TO_COOKIE" --post-data "log_email=$EMAIL&log_password=$PASSWORD&redirectOk=/en/" $BASE_URL_SECURE$LOGIN_URL | grep "loginbad=yes"
if test $? -eq 1
then
CONTINUE=0
avatar
LeaChim: Just downloaded the linux sh script, didn't work.
A bit of fiddling got it working for me:
Around line 46 change it to look like this:
mkdir -p "$GOG_DOWNLOADER_DIR"
wget -O /dev/null -o /dev/stdout --save-cookie "$PATH_TO_COOKIE" --post-data "log_email=$EMAIL&log_password=$PASSWORD&redirectOk=/en/" $BASE_URL_SECURE$LOGIN_URL | grep "loginbad=yes"
if test $? -eq 1
then
CONTINUE=0
Thanks! This helped me to get it to work. Actually, I only had to add the "&redirectOk=/en/", after PASSWORD, no need for me to touch the other parts of this line.
avatar
LeaChim: A bit of fiddling got it working for me:
Around line 46 change it to look like this:
Thanks, that did it!
Aehm, I am on OS X. I have problems with the escape control-sequences. They are being displayed as text. Any ideas what I could do about it?

Hmm...entering a number (in the files-list) results in "Unknown Command" and the list gets relisted, but no download.

Wouldn't it be best to focus on this script? It could be used on all three platforms, Win, OS X and Linux. Maybe some optional ncurses interface and good to go. Also an option to check whether the files have been downloaded, put every file (and add-ons) into its own directory ,etc.
Post edited December 08, 2011 by amix
I've also added --keep-session-cookies for the list of wget arguments.
It's useful to know, that the cookie file shouldn't be world and gorup readable. So issuing chmod go-r cookies.txt will make sure, that the actual user is the only person who reads the file (except for root).
Hi, do someone manage to make this script work now? There seems to be a new "buk" parameter to the login url, that seem to be some very long key :/
It would be nice if GOG provided an web API to download the game we bought, instead of having to fight to get them.
avatar
mrforty: Hi, do someone manage to make this script work now? There seems to be a new "buk" parameter to the login url, that seem to be some very long key :/
It would be nice if GOG provided an web API to download the game we bought, instead of having to fight to get them.
The script hasn't been updated in a long time
Even if the login would work the script doesn't parse the new account page properly so it wouldn't work

Currently the only working downloader is my downloader which I just updated to work with the new login form

lhw is working on the GOG API
http://www.gog.com/en/forum/general/new_linux_gog_downloader/page1
https://github.com/lhw/gogdownloader

I have also worked a little on the API with my test client
https://sites.google.com/site/gogdownloader/gogdownloader-api-test.tar.gz
hi! thanks for your reply :) in the meanwhile I actually figured out how it worked on my own ;)

if anyone is interested, here are the steps to log in http://pastebin.com/mEFTCBsY

I am going to have a look at you program! looks great :)
After reading your code, the login process is actually much simpler than I thought. I simplifier my script accordingly. I use something like
$ gvfs-set-attribute dir/ "metadata::custom-icon" cover.jpg
where dir/ is a game directory containing a file cover.jpg to get an awesome lib like http://bayimg.com/EAAEjAAed in nautilus.