diff --git a/README.md b/README.md index 890dabc..04e07e1 100755 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# Origin integration for GOG Galaxy +# EA integration for GOG Galaxy -Allows to import your list of games, achievements and time played. \ No newline at end of file +This plugin allows you to import your list of games, achievements, and time played. diff --git a/src/plugin.py b/src/plugin.py index 0204736..11f97b5 100755 --- a/src/plugin.py +++ b/src/plugin.py @@ -36,14 +36,14 @@ def is_windows(): LOCAL_GAMES_CACHE_VALID_PERIOD = 5 AUTH_PARAMS = { - "window_title": "Login to Origin", - "window_width": 495 if is_windows() else 480, - "window_height": 746 if is_windows() else 708, - "start_uri": "https://accounts.ea.com/connect/auth" - "?response_type=code&client_id=ORIGIN_SPA_ID&display=originXWeb/login" - "&locale=en_US&release_type=prod" - "&redirect_uri=https://www.origin.com/views/login.html", - "end_uri_regex": r"^https://www\.origin\.com/views/login\.html.*" +"window_title": "Login to EA Play", +"window_width": 495 if is_windows() else 480, +"window_height": 746 if is_windows() else 708, +"start_uri": "https://accounts.ea.com/connect/auth" +"?response_type=code&client_id=EADOTCOM-WEB-SERVER&display=junoWeb/login" +"&locale=en_US&release_type=prod" +"&redirect_uri=https://www.ea.com/ea-play", +"end_uri_regex":r"^https://www\.ea\.com/ea-play.*" } def regex_pattern(regex): return ".*" + re.escape(regex) + ".*"