UncleGoogle / galaxy-integration-humblebundle

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

Split keys when contain multiple games #87

Closed UncleGoogle closed 4 years ago

UncleGoogle commented 4 years ago

Some activate keys (at least for Steam) contains multiple products to be redeem at once. The idea for this integration is to extract those products and show them as separate games.

Technically it is possible only by splitting key human_name by comas and multiplying the rest of such key with slightly different id.

Sounds risky as it may produce false positives for key games containing regular comas in their names. I've not found any so far (but my library is not the biggest though. But they can be probably fixed case by case by someone behind GOG gamesdb. And lacking games that were just not send so far (or were spammed in gog db because are not single "game"), cannot be solved in this way. So there is more advantages in "unhiding" many of the humble games than loosing few possibly recoverable. I hope.

Closes #65

Additionally I've added to all key games some kind of key indicator - all new key names imported to Galaxy should contain (Steam), (Steam Key) or (Key), etc. (depending on what humble API returns). Unfortunately all already imported games won't be affected this change. See #84 for rationale.