bartok765 / galaxy_blizzard_plugin

GOG Galaxy 2.0 plugin for Blizzard
MIT License
35 stars 15 forks source link

Overwatch Game time not being tracked? #21

Open saitho opened 4 years ago

saitho commented 4 years ago

There are several issues on the GOG issue tracker that reported game time tracking was not working.

Issues before PR #7 which reintroduced game time tracking for Overwatch (might be redundant):

We may have to check that again.

bartok765 commented 4 years ago

55595 - probably problem with competive as you said. Maybe there is a way to get from current season, then save locally to be able to sum it later..?

FriendsOfGalaxy commented 4 years ago

Hello, maybe this can help:

2020-07-03 18:09:01,768 - root - DEBUG - Status code: 200
2020-07-03 18:09:01,769 - galaxy.api.plugin - ERROR - Unexpected exception raised in game times importer
Traceback (most recent call last):
File "C:\Users\Marlon\AppData\Local\GOG.com\Galaxy\plugins\installed\battlenet_ba170431-0649-482f-863b-d248592f1842\galaxy\api\plugin.py", line 63, in import_element
element = await self.get(id, context_)
File "C:\Users\Marlon\AppData\Local\GOG.com\Galaxy\plugins\installed\battlenet_ba170431-0649-482f-863b-d248592f1842\plugin.py", line 362, in get_game_time
total_time = await self._get_overwatch_time()
File "C:\Users\Marlon\AppData\Local\GOG.com\Galaxy\plugins\installed\battlenet_ba170431-0649-482f-863b-d248592f1842\plugin.py", line 382, in _get_overwatch_time
qp_time = player_data['playtime']['quickplay']
KeyError: 'quickplay'
2020-07-03 18:09:01,798 - galaxy.api.jsonrpc - INFO - Sending notification: method=game_time_import_failure, params={'game_id': 'prometheus', 'error': {'code': 0, 'message': 'Unknown error'}}

Has something changed in the API?

saitho commented 4 years ago

Looking at the APi request for my profile that data seems to be gone: https://owapi.io/profile/pc/eu/saitho-2703