From 32fe1363353124bd02f0e39808f7d545db86bfee Mon Sep 17 00:00:00 2001 From: tanakanira0118 Date: Mon, 24 Oct 2022 00:20:31 +0900 Subject: [PATCH 1/4] Update legendary-gl to 0.20.29 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 33f9b7c..598e9ed 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 From ab1b137ffb9163dbdfbff694023fe3888b6037a4 Mon Sep 17 00:00:00 2001 From: tanakanira0118 Date: Mon, 24 Oct 2022 00:21:31 +0900 Subject: [PATCH 2/4] Set api_timeout to 10.0 --- helper/epicgames_auth.py | 2 +- modules/epicgames.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/epicgames_auth.py b/helper/epicgames_auth.py index 145abf3..16ffb42 100644 --- a/helper/epicgames_auth.py +++ b/helper/epicgames_auth.py @@ -2,7 +2,7 @@ def main(): - _client = LegendaryCLI() + _client = LegendaryCLI(api_timeout=10.0) _args = { "import_egs_auth": None, "auth_code": None, diff --git a/modules/epicgames.py b/modules/epicgames.py index 246ed15..a31bb6a 100644 --- a/modules/epicgames.py +++ b/modules/epicgames.py @@ -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 From 92872cc7a8697164c6d83d90a7b81d3000dedd36 Mon Sep 17 00:00:00 2001 From: tanakanira0118 Date: Mon, 24 Oct 2022 00:22:43 +0900 Subject: [PATCH 3/4] Fix parse build_version --- modules/epicgames.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/epicgames.py b/modules/epicgames.py index a31bb6a..e1fb16f 100644 --- a/modules/epicgames.py +++ b/modules/epicgames.py @@ -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, ) From e0770a75205a49d4dfe55b1abe51b0a22c420529 Mon Sep 17 00:00:00 2001 From: kurokobo <2920259+kurokobo@users.noreply.github.com> Date: Mon, 24 Oct 2022 05:20:40 +0900 Subject: [PATCH 4/4] fix: apply fixes to use updated legendary --- helper/app_finder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/app_finder.py b/helper/app_finder.py index 61564a7..7b1e7dd 100644 --- a/helper/app_finder.py +++ b/helper/app_finder.py @@ -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() @@ -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)