Akylen

  • Full Member
  • Posts: 218
  • Trades: 61
GOG Wishlist
« on July 26th, 2017, 01:46 PM »Last edited on July 26th, 2017, 01:54 PM
Hi,


I have been here since the inception of Lestrades. It has been a short ride, with many features quickly introduced that I appreciate.
As another user pointed out, I think this website needs to differentiate a little bit in order to move people away from similar trade websites.


One feature I always wanted to have since beginning trading is the ability to add wishlist from other websites, in particular GOG. I don't know if this is possible (if not I'd like to appeal to GOG). I can see one day amazon digital would also make a lot of sense as well.


In a world surrounded mostly by Steam, it is our duty as gamers to support healthy competition :)

[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
Re: GOG Wishlist
« Reply #1, on July 26th, 2017, 10:23 PM »
- Yes, it is possible. GOG provides permalinks to one's wishlists.
- However,
(1) GOG games don't have an ID per se, only a URL, so it's more annoying to handle them, although technically shouldn't be an issue with the current database format,
(2) I would have to retrieve all of GOG's game database, which isn't publicly available in any API. Meaning I'd have to scrape their website and hope I get everything just by visiting pages... Uh.
(3) Lestrade's game database is directly imported from BVG, and as such I can only 'record' GOG games that are already in BVG's database (and that's not a lot). The alternatives are already known: (a) stop syncing with BVG's database and thus make it much harder to sync user 'collections', or (b) use gaps in the database (unused IDs, but there aren't enough to accomodate for all of GOG's games), or (c) keep syncing with Barter but differentiate the barter ID from Lestrade's ID (would be the safest solution, but I'm not sure it's the simplest for me...), or (d) store negative IDs for games that are added manually to Lestrade's. But negative IDs look weird in the URLs, and I think we lose the benefit of auto-increments.

Anyway-- it's something I'd like to do (GOG library + wishlist + tradables etc), and I'm a really big GOG fan too (I bought many games there), but that's not part of my priorities for now.

Akylen

  • Full Member
  • Posts: 218
  • Trades: 61
Re: GOG Wishlist
« Reply #2, on July 31st, 2017, 05:20 PM »
I understand it's not part of the priorities now. Thanks for the hope at least :)

[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
Re: GOG Wishlist
« Reply #3, on July 31st, 2017, 06:57 PM »
If GOG ever releases an API, make sure to tell me! :)


[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
Re: GOG Wishlist
« Reply #5, on August 1st, 2017, 01:08 PM »
Hmm these aren't official, although there's some documentation I'd seen before.
Looks messy though. I mean, in order to get a JSON version of a user's wishlist, I need a user ID that I can't seem to find anywhere (totally unrelated to the user ID in official wishlist permalinks...), I couldn't find a way to retrieve user libraries, and I couldn't find a way to list all GOG games. Which by the way looks even more troublesome than I thought-- looks like GOG recently added support for 'packages', à la Steam... Ahhhhhhhhh, gotta love those.

Akylen

  • Full Member
  • Posts: 218
  • Trades: 61
Re: GOG Wishlist
« Reply #6, on August 1st, 2017, 08:43 PM »
You should protest to them. They must provide a decent API  -_-

[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
Re: GOG Wishlist
« Reply #7, on August 1st, 2017, 08:48 PM »
Well, it's their choice...
I can always scrape the site manually for games, it's just not something I'm looking forward to.
Also, without access to libraries, I can't sync with LT accounts, obviously.

Akylen

  • Full Member
  • Posts: 218
  • Trades: 61
Re: GOG Wishlist
« Reply #8, on August 1st, 2017, 09:36 PM »
Makes sense why most of the sites only support Steam then. I think with the release of GOG Galaxy it got better. They are too slow (or don't want) to release a proper API.

[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
Re: GOG Wishlist
« Reply #9, on August 1st, 2017, 11:01 PM »
I managed to hack a URL which returns the entire library with the URL to the game, to the banner and other details.
Meaning, I rock. :cool:
Well, I guess it also means I'm likely to implement that in the future, but it'll still be a lot of work... (Also, it means finally stopping being game ID-compatible with Barter, although I already accounted for that long ago by separating barter ID from LT ID internally.)

/u/humpaaa

  • Full Member
  • ▶ ¦ Yep
  • Posts: 190
  • Trades: 10
Re: GOG Wishlist
« Reply #10, on August 1st, 2017, 11:35 PM »
This would actually be huge. 
I barely use GoG, but that would be a feature that seperates Lestrades from Barter greatly.

[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
Re: GOG Wishlist
« Reply #11, on August 1st, 2017, 11:53 PM »
Well, realistically I can add the games to the database, but I can't add to your library unless you do everything manually from game pages. Which sucks a bit. I have 120 games over there so I'd rather automate it, but that's probably require storing gog credentials because I can't find a proper OAuth form to get a token. So I'd have to do it like lgogdownloader. This isn't really ideal because I don't want people to trust the site with their credentials. Matter of principle. So I don't know.