Skip to content

Commit

Permalink
Merge pull request #7 from tanakanira0118/fix/epic-notification
Browse files Browse the repository at this point in the history
Fix Epic Games Auth and Notification
  • Loading branch information
kurokobo authored Oct 23, 2022
2 parents 1f59f17 + e0770a7 commit 16bdd8c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions helper/app_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def gather_msstore(id, market):


def gather_epicgames():
_client = LegendaryCLI()
_client = LegendaryCLI(api_timeout=10.0)
_client.core.login()
_product_infos, _ = _client.core.get_game_and_dlc_list()

Expand All @@ -86,7 +86,7 @@ def gather_epicgames():
_data = vars(_product_info)
_id = _data["app_name"]
_name = _data["app_title"]
_version = _data["asset_info"]["build_version"]
_version = _data["asset_infos"]["Windows"]["build_version"]

_row = [_id, _id, _name, _version]
_table.append(_row)
Expand Down
2 changes: 1 addition & 1 deletion helper/epicgames_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def main():
_client = LegendaryCLI()
_client = LegendaryCLI(api_timeout=10.0)
_args = {
"import_egs_auth": None,
"auth_code": None,
Expand Down
4 changes: 2 additions & 2 deletions modules/epicgames.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class EpicGames:
def __init__(self, app_ids, notifier, ignore_first):
self.logger = logging.getLogger(__name__)
self.client = LegendaryCLI()
self.client = LegendaryCLI(api_timeout=10.0)
self.old_result = {}
self.new_result = {}
self.timestamp = None
Expand Down Expand Up @@ -54,7 +54,7 @@ def gather_app_info(self):
id=_app,
name=_product_info["apps"][_app]["app_title"],
),
data=_product_info["apps"][_app]["asset_info"]["build_version"],
data=_product_info["apps"][_app]["asset_infos"]["Windows"]["build_version"],
last_checked=self.timestamp,
last_updated=_last_updated,
)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ ms_cv==0.1.1

discord-webhook==0.13.0

legendary-gl==0.20.6
legendary-gl==0.20.29

tabulate==0.8.9

0 comments on commit 16bdd8c

Please sign in to comment.