Posted December 11, 2015
high rated
mrkgnao: Unfortunately, no.
MaGog has practically no concept of relations between items.
I have been thinking recently about adding the concepts of a "pack" (a single game composed of more than one entry, e.g. base game + DLC 1 + DLC 2 + deluxe edition) and a "series" (multiple games/packs belonging to the same series, e.g. Witcher), but the problem is that the relationship information needs to be managed manually every time GOG adds a game (or changes a game ID) and that's a pain, as I don't see how this can be fully and consistently retrieved from GOG's website.
adaliabooks: Not sure whether it helps at all, but if you go into the console on a games page and run: MaGog has practically no concept of relations between items.
I have been thinking recently about adding the concepts of a "pack" (a single game composed of more than one entry, e.g. base game + DLC 1 + DLC 2 + deluxe edition) and a "series" (multiple games/packs belonging to the same series, e.g. Witcher), but the problem is that the relationship information needs to be managed manually every time GOG adds a game (or changes a game ID) and that's a pain, as I don't see how this can be fully and consistently retrieved from GOG's website.
gogData.gameProductSeriesData
It gives you the list of games that come up under the "BUY SERIES – COMPLETE IT" header...
But I presume the problem may be more to do with retrieving that data without having to visit each individual game's page (I assume you get most of your data through GoG's own Ajax methods and URLs)
The series data does seem to be attached to the product data as well, so it could potentially be pulled from anywhere a game is listed (for example the account page or the /games page) with just a little more work if that would be better...
Unfortunately it doesn't seem to differentiate between other games in the series and DLC.. though it's probably possible to do that on your end? (You could presumably filter results by DLC that is a part of a series to retrieve a game's DLC, though it might return any DLC for any game in said series that way)
Let me know if that is any help and I'll poke about further...
It's that GOG's data is nowhere near satisfactory. For example, "WITCHER 3: WILD HUNT, THE - GAME + EXPANSION PASS" doesn't seem to belong to any series according to its game page. And there are many other examples.
What I need is someone to compile and maintain the data religiously.
BTW, I may have misunderstood how to run your suggestion, but I get "undefined".
Still, thanks.
Post edited December 11, 2015 by mrkgnao