Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
This plugin allows you to import your list of games, achievements, and time played.
16 changes: 8 additions & 8 deletions src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) + ".*"
Expand Down