From 4d12e84ce2a19426fc823b66491ec66d90b83549 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Sun, 10 Jul 2022 16:12:01 +0200 Subject: [PATCH] epicgames.com/store -> store.epicgames.com --- dailyreleases/stores/__init__.py | 2 +- tests/test_parse_dirname.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dailyreleases/stores/__init__.py b/dailyreleases/stores/__init__.py index c9583cb..832eaad 100644 --- a/dailyreleases/stores/__init__.py +++ b/dailyreleases/stores/__init__.py @@ -25,7 +25,7 @@ def find_store_links(game_name: str) -> Dict[str, str]: "origin.com": "Origin", "ubi(soft)?.com": "Ubisoft", "www.microsoft.com/.*p": "Microsoft Store", - "epicgames.com/store": "Epic Games", + "store.epicgames.com": "Epic Games", "itch.io": "Itch.io", "bigfishgames.com/games": "Big Fish Games", "gamejolt.com": "Game Jolt", diff --git a/tests/test_parse_dirname.py b/tests/test_parse_dirname.py index 068f460..54c02e4 100644 --- a/tests/test_parse_dirname.py +++ b/tests/test_parse_dirname.py @@ -161,10 +161,10 @@ class ParseDirnameTestCase(unittest.TestCase): self.assertIn("gog.com/game/diablo", r.store_links["GOG"]) def test_epic_games_exclusive(self): - pre = Pre("Journey-CODEX", "nfo_link", datetime.utcnow()) + pre = Pre("Vampire_The_Masquerade_Swansong-Razor1911", "nfo_link", datetime.utcnow()) r = parsing.parse_pre(pre) self.assertIn( - "epicgames.com/store/en-US/product/journey", r.store_links["Epic Games"] + "store.epicgames.com/en-US/p/vampire-the-masquerade-swansong", r.store_links["Epic Games"] ) def test_score_non_steam(self):