UncleGoogle / galaxy-integration-humblebundle

Humble Bundle integration for GOG Galaxy 2.0
GNU General Public License v3.0
186 stars 19 forks source link

Doesn't show all trove games #70

Closed Bertaz closed 4 years ago

Bertaz commented 4 years ago

Describe the bug Some games from the trove don't show up in the integration. Not sure if caused by gogcom/galaxy-integrations-python-api#72, because I can't find the Game ID. Right now there are 98 games in the trove, the integration shows only 87 so 11 are missing, all of the newly added: recently added plus some others like Operator.

Steps to reproduce: Edit config.ini to only show trove games > Sync Integration

Expected behavior All the trove games should be added by the integration and show up in gog galaxy.

Plugin installed Directly from Galaxy

Provide logs plugin-humble-logs.zip

Bertaz commented 4 years ago

I analyzed the log a little bit, there are currently 98 games in the trove: troveFind and the integration finds 94, so it's actually skipping the recently added.

I found the GameIDs, 5 of the 7 not showing up are "type": "spam" so it's a galaxy problem, but the remaining 2 are "type": "dlc". They are avadon3_hintbookandbonuses_trove dlc of avadon3_thewarborn_trove & starwars_xwingvstiefighter_trove dlc of itself. Ideally they should show up in the game they are dlc for.

UncleGoogle commented 4 years ago

I'm getting trove games from https://www.humblebundle.com/api/v1/trove/chunk?index=0 https://www.humblebundle.com/api/v1/trove/chunk?index=1 https://www.humblebundle.com/api/v1/trove/chunk?index=2 https://www.humblebundle.com/api/v1/trove/chunk?index=3 https://www.humblebundle.com/api/v1/trove/chunk?index=4 Currently there is 94 in total, those reported by plugin. Could you help me find which are thsoe 4 lacking titles? Are they present on https://www.humblebundle.com/subscription/trove ?

EDIT Are they those 4 recently added?

starwars_xwingvstiefighter_trove dlc of itself.

What do you mean?

Bertaz commented 4 years ago

Currently there is 94 in total, those reported by plugin. Could you help me find which are thsoe 4 lacking titles? Are they present on https://www.humblebundle.com/subscription/trove?

EDIT Are they those 4 recently added?

Exactly, you can see them in the image in the opening comment. The one with the strange font is called Arrog. As those api calls don't report them I guess this is a HB bug. Would you mind reporting it to HB? As I guess you would be more detailed in the report than me.

starwars_xwingvstiefighter_trove dlc of itself.

What do you mean?

If you go to gamesdb.gog/starwars_xwingvstiefighter you can see that starwars_xwingvstiefighter_trove (it is the base game + the dlc) has type: dlc with parent id: null. I'm not sure if it's gog's fault, either way I reported it on mantis2 with the spam games.

UncleGoogle commented 4 years ago

If you go to gamesdb.gog/starwars_xwingvstiefighter you can see that starwars_xwingvstiefighter_trove (it is the base game + the dlc) has type: dlc with parent id: null. I'm not sure if it's gog's fault, either way I reported it on mantis2 with the spam games.

Right.

As those api calls don't report them I guess this is a HB bug. Would you mind reporting it to HB?

I afraid its not a bug, but humble page get those information from somewhere else. Additionally I see that https://www.humblebundle.com/subscription/trove do not ask for https://www.humblebundle.com/api/v1/trove/chunk?index=0 (the newest games lies there) Only chunks 1-4. 545a493703c4c3876ddd2a10bc1af77e

Maybe I need to research the javascript there... Any help appreciated

ayush-j commented 4 years ago

I think HB has fixed this on the API side as the newly added games are now available in chunk 1 and listed in GOG. The only problem left now is games being marked as spam.

I afraid its not a bug, but humble page get those information from somewhere else. Additionally I see that https://www.humblebundle.com/subscription/trove do not ask for https://www.humblebundle.com/api/v1/trove/chunk?index=0 (the newest games lies there) Only chunks 1-4.

The data from chunk 0 (plus some additional metadata about newly added games) is already embedded in the HTML page inside a script tag labelled "webpack-monthly-trove-data". That's probably why it doesn't request chunk 0.

UncleGoogle commented 4 years ago

Thanks for help @ayush-j, I've added PR. The info in json you've found contains also:

 "countdownTimerOptions": {
      "currentTime": "2019-12-30T20:48:37.105434",
      "nextAdditionTime": "2020-01-10T18:00:00"
    },

Let us see if at 2020-01-10 the problem will come back for fresh trove content. I so, I'll merge.

PS there are also 2 things to consider:

UncleGoogle commented 4 years ago

New January trove games: "Unarallel" and "Flames in the flood" are shown only in "recent" games on the webpage.

Merging changes - will be released on 0.6.0 soon :)

Thanks for contributing!