diff --git a/hockey/player.py b/hockey/player.py index e80d86d91..ce9aafbd0 100644 --- a/hockey/player.py +++ b/hockey/player.py @@ -502,6 +502,14 @@ def cap_friendly_url(self) -> str: def puckpedia_url(self) -> str: return f"https://puckpedia.com/player/{self.full_name_url.lower()}" + @property + def the_stanley_cap_url(self) -> str: + return f"https://thestanleycap.com/players/{self.full_name_url.lower()}-{self.id}" + + @property + def capwages_url(self) -> str: + return f"https://capwages.com/players/{self.full_name_url.lower()}" + @property def url(self): return f"https://www.nhl.com/player/{self.first_name.lower()}-{self.last_name.lower()}-{self.id}" @@ -576,6 +584,8 @@ def description(self) -> str: _("[NHL]({ep_url})").format(ep_url=self.url), # _("[Cap Friendly]({cf_url})").format(cf_url=self.cap_friendly_url), _("[Puckpedia]({cf_url})").format(cf_url=self.puckpedia_url), + _("[The Stanley Cap]({cf_url})").format(cf_url=self.the_stanley_cap_url), + _("[Capwages]({cf_url})").format(cf_url=self.capwages_url), ] if getattr(self, "dda_id", None): links.append( @@ -743,6 +753,8 @@ def description(self) -> str: links = [ _("[Elite Prospects]({ep_url})").format(ep_url=self.ep_url()), _("[Puckpedia]({cf_url})").format(cf_url=self.puckpedia_url()), + _("[The Stanley Cap]({cf_url})").format(cf_url=self.the_stanley_cap_url()), + _("[Capwages]({cf_url})").format(cf_url=self.capwages_url()), # _("[Cap Friendly]({cf_url})").format(cf_url=self.cap_friendly_url()), ] if getattr(self, "dda_id"): @@ -827,6 +839,12 @@ def cap_friendly_url(self) -> str: def puckpedia_url(self) -> str: return f"https://puckpedia.com/player/{self.full_name_url()}" + def the_stanley_cap_url(self) -> str: + return f"https://thestanleycap.com/players/{self.full_name_url.lower()}-{self.id}" + + def capwages_url(self) -> str: + return f"https://capwages.com/players/{self.full_name_url.lower()}" + @classmethod async def from_id( cls, player_id: int, session: Optional[aiohttp.ClientSession] = None