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 just bought a bunch of games in the latest sales rounds. As I'm downloading the files through GOG Galaxy, I noticed that in a lot of cases the files aren't being renamed on my drive, they're being stored as "download", exact filename. Manually downloading from my library page on the GOG website works and the files are named correctly. Something going on? Galaxy version is 1.2.23, just tried restarting and it didn't autoupdate.


Edit - It appears to only be happening with the additional downloads. The main game .exe and .bin files seem to be downloaded and renamed fine.
Post edited October 10, 2017 by Whacker007
No posts in this topic were marked as the solution yet. If you can help, add your reply
avatar
Whacker007: I just bought a bunch of games in the latest sales rounds. As I'm downloading the files through GOG Galaxy, I noticed that in a lot of cases the files aren't being renamed on my drive, they're being stored as "download", exact filename. Manually downloading from my library page on the GOG website works and the files are named correctly. Something going on? Galaxy version is 1.2.23, just tried restarting and it didn't autoupdate.
Do you use Galaxy to download backup (offline installer), or use it to install games directly?
avatar
Whacker007: I just bought a bunch of games in the latest sales rounds. As I'm downloading the files through GOG Galaxy, I noticed that in a lot of cases the files aren't being renamed on my drive, they're being stored as "download", exact filename. Manually downloading from my library page on the GOG website works and the files are named correctly. Something going on? Galaxy version is 1.2.23, just tried restarting and it didn't autoupdate.
avatar
kbnrylaec: Do you use Galaxy to download backup (offline installer), or use it to install games directly?
1st option, download offline installers and the goodies.
avatar
kbnrylaec: Do you use Galaxy to download backup (offline installer), or use it to install games directly?
avatar
Whacker007: 1st option, download offline installers and the goodies.
It could be a related bug of recent Galaxy API glitch:
https://www.gog.com/forum/general/lgogdownloader_gogdownloader_for_linux/post965

Before they fix Galaxy, you may want to try:
1. use web browser as you have known
2. use the unsupported old official GOG Downloader to download offline installers
3. use 3rd party tools to download everything you own at GOG:
3a: gogrepo.py (Work nicely)
3b: LGOGDownloader (Latest version use Galaxy API by default, so it could suffer the same bug with official GOG Galaxy.)
Post edited October 10, 2017 by kbnrylaec
avatar
Whacker007: 1st option, download offline installers and the goodies.
avatar
kbnrylaec: It could be a related bug of recent Galaxy API glitch:
https://www.gog.com/forum/general/lgogdownloader_gogdownloader_for_linux/post965

Before they fix Galaxy, you may want to try:
1. use web browser as you have known
2. use the unsupported old official GOG Downloader to download offline installers
3. use 3rd party tools to download everything you own at GOG:
3a: gogrepo.py (Work nicely)
3b: LGOGDownloader (Latest version use Galaxy API by default, so it could suffer the same bug with official GOG Galaxy.)
I'd say that looks/sounds like it's the same problem here. I've noticed that the "download" file always is the exact same size as one of the goodie files, so it looks like it's not getting the metadata when it downloads. I'm just manually downloading in the mean time. Thanks for the head's up, hopefully GOG sees this so they know their Win Galaxy current version is affected too.
GOG recently fixed an issue with Galaxy API and introduced a minor change to the API at the same time.
They probably haven't updated Galaxy to properly handle the new change yet.

The problem is caused by change in "downlink" json response.

Example:
http://api.gog.com/products/1458127099/downlink/installer/en1installer1
Previously it returned something similar to this:
{
"checksum" : "[url=https://content-system.gog.com/products/1458127099/.../setup_jotun_20170727_(13763)-1.bin.xml?access_token=...]https://content-system.gog.com/products/1458127099/.../setup_jotun_20170727_(13763)-1.bin.xml?access_token=...[/url]",
"downlink" : "[url=https://content-system.gog.com/products/1458127099/.../setup_jotun_20170727_(13763)-1.bin?access_token=...]https://content-system.gog.com/products/1458127099/.../setup_jotun_20170727_(13763)-1.bin?access_token=...[/url]"
}

Now it returns this:
{
"checksum" : "https://content-system.gog.com/products/1458127099/users/46987509246404841/namespaces/website/download?path=%2Fsecure%2Foffline%2F1458127099%2F1458127099%2F50370419844322084%2F5782%2Fsetup_jotun_20170727_%2813763%29-1.bin.xml&access_token=...",
"downlink" : "https://content-system.gog.com/products/1458127099/users/46987509246404841/namespaces/website/download?path=%2Fsecure%2Foffline%2F1458127099%2F1458127099%2F50370419844322084%2F5782%2Fsetup_jotun_20170727_%2813763%29-1.bin&access_token=..."
}

I assume that GOG Galaxy gets the file name like lgogdownloader gets it.
Find last "/" and first "?" and assign everything between them as file name. This of course breaks with the new response because it always gets "download" as file name.

It's easy to fix and I already implemented a fix for it in lgogdownloader.
https://github.com/Sude-/lgogdownloader/commit/79aa66a2d391881077421278c76837348fb21a70
Just unescape/urldecode the returned "downlink" value. Find last "/" and first "&" and then assign everything between them as file name.

edit: apparently the forum really hates the url formatting
Post edited October 10, 2017 by Sude