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'm afraid I have bad news here.

I just tried Firefox Quantum 60.0.1 (64-bit) (on OpenSuse Tumbleweed) using this: https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/?src=search cookie exporter using Python 2 & Python 3 and it logged me in properly

Just to go over my steps

1) Use Firefox to Log into GOG.com
2) Install the Cookie Exporter
3) Export cookies.txt to the folder with gogrepoc.py in it
4) Run gogrepoc update from terminal in that folder.

So any more details you could provide would be great, since it unfortunately doesn't seem to be a simple Linux encoding issue as I was kind of hoping.
Some questions.

'Does this script always use https?' and 'Can you pause downloads to continue later'?
Also - most likely asked before, but 'does it verify if game was updated?'. And, if yes - 'will new copy be downloaded separately or instead of existed? (e.g will already downloaded files be removed or nope)'.

And yeah, almost forgot - does it work for account, protected with email codes?
Post edited June 10, 2018 by Gekko_Dekko
avatar
Gekko_Dekko: Some questions.

'Does this script always use https?' and 'Can you pause downloads to continue later'?
Also - most likely asked before, but 'does it verify if game was updated?'. And, if yes - 'will new copy be downloaded separately or instead of existed? (e.g will already downloaded files be removed or nope)'.

And yeah, almost forgot - does it work for account, protected with email codes?
The way it works, you run an update, then run the download. If a file is detected as updated during the update process, it is downloaded. If that file changes again between updating and downloading, then you'll get an error in the log. So download right after you run the update commands. I do a full library update twice a month. Every week I do a "check for new/check for updated" run and download.

On your first login, you'll have to use the code. Just make sure you have valid cookie to bypass these checks.

As to your other questions, I defer to Kalanyr as they are questions I can't answer directly.
Post edited June 10, 2018 by paladin181
avatar
Gekko_Dekko: Some questions.

'Does this script always use https?' and 'Can you pause downloads to continue later'?
Also - most likely asked before, but 'does it verify if game was updated?'. And, if yes - 'will new copy be downloaded separately or instead of existed? (e.g will already downloaded files be removed or nope)'.

And yeah, almost forgot - does it work for account, protected with email codes?
Assuming you're using my fork:

It uses https as much as downloading from GOG in the web browser does (which I think is everything, I'd have to check a gog-manifest to make sure that the download URLs GOG gives are HTTPS and don't have it handy right now). (AFAIK this is true for the original version too, I haven't changed anything in this respect).

You can generally interrupt the script (using standard break commands for your OS) and resume it later, you might sometimes have to redownload a small amount of data (files are downloaded in chunks and a partial download will be resumed from the last valid chunk). Obviously if you use a forceful kill method while it's writing to the manifest files, bad things will happen, so don't do that (the program will ignore polite kill requests while it's in the middle of such) but writing to the manifest files is kept to a minimum. .
Shorter Answer; Yes, you can stop the script and resume from very close to where you left off.

The normal behavior is to download everything, with options to take GOG's word on what's New / Updated , GOG has historically been pretty bad about how accurate it's word is on that, but they are getting better. The dev branch (which will be become the main branch when I'm happy with it) has different behavior: it downloads only what GOG says is new/updated with an option to download everything (introduced to be kinder to the servers). I recommend only doing a full update once a month or so (and do an update of a specific game before you install it to make sure it's up to date).

The default behavior if a no longer used file exists is to "orphan" it (ie move it to a separate subfolder , where you can decide what to do with it later). If you're wondering why it's because GOG has in the past deleted certain extras without immediate replacements or accidentally uploaded corrupt files (they generally fix this pretty quickly but it's not a surprise you want if you're without internet access when you find it).

Yes, it supports the email login codes , though things can go wrong if the Recaptcha is triggered, in which case you need to export cookies.txt from a browser and use that instead.
Post edited June 10, 2018 by Kalanyr
Good news! I found the problem by using a new clean profile in Firefox. (Which I'm somewhat embarassed I didn't think to do earlier.)

Apparently, I had Firefox configured to "Accept Cookies and site data from websites" but only to "Keep until I close Firefox." Merely changing it to "Keep until they expire" immediately corrected the issue. Now my exported cookies.txt file works like it is expected to!

I'm not a browser/web dev person, but my working theory is that with my old setting, any cookies from gog.com were "one time use". Thus, when I exported them and tried to use them in gogrepo, GOG's website refused to accept cookies that it knew were already used and thus "expired".

Sorry, Kalanyr, if I wasted your time on a wild goose chase.
avatar
JethCalark: Good news! I found the problem by using a new clean profile in Firefox. (Which I'm somewhat embarassed I didn't think to do earlier.)

Apparently, I had Firefox configured to "Accept Cookies and site data from websites" but only to "Keep until I close Firefox." Merely changing it to "Keep until they expire" immediately corrected the issue. Now my exported cookies.txt file works like it is expected to!

I'm not a browser/web dev person, but my working theory is that with my old setting, any cookies from gog.com were "one time use". Thus, when I exported them and tried to use them in gogrepo, GOG's website refused to accept cookies that it knew were already used and thus "expired".

Sorry, Kalanyr, if I wasted your time on a wild goose chase.
No worries, glad you solved the issue. It's good for me to keep making sure the script works on other OS's.
okie, thanks guys.

Another question - can you setup download options per game, or just globally? For example - I need one game to be in 2 languages, but not others. Or download one game for different OS.
avatar
Gekko_Dekko: okie, thanks guys.

Another question - can you setup download options per game, or just globally? For example - I need one game to be in 2 languages, but not others. Or download one game for different OS.
Yes. You can do a global update for English and Linux , then an update by using -ids for specific games after using different settings. Then download.