Skip to content

Commit

Permalink
fix: Remove defunct Battlefield Tracker weblinks
Browse files Browse the repository at this point in the history
  • Loading branch information
cetteup committed Apr 27, 2024
1 parent d1fca3e commit 0d63be6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions GameserverLister/common/weblinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ def render(self, game: str, platform: str, uid: str, ip: Optional[str] = None, p
'https://arena.sh/game/{ip}:{port}/',
False
),
'battlefieldtracker': WebLinkTemplate(
'battlefieldtracker.com',
'https://battlefieldtracker.com/bf1/servers/pc/{uid}',
False
),
'battlelog': WebLinkTemplate(
'battlelog.com',
'https://battlelog.battlefield.com/{game}/servers/show/{platform}/{uid}',
Expand Down
7 changes: 1 addition & 6 deletions GameserverLister/listers/gametools.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,4 @@ def build_server_links(
ip: Optional[str] = None,
port: Optional[int] = None
) -> Union[List[WebLink], WebLink]:
links = [WEB_LINK_TEMPLATES['gametools'].render(self.game, self.platform, uid)]
# BF1 servers are also listed on battlefieldtracker.com
if self.game is GametoolsGame.BF1:
links.append(WEB_LINK_TEMPLATES['battlefieldtracker'].render(self.game, self.platform, uid))

return links
return [WEB_LINK_TEMPLATES['gametools'].render(self.game, self.platform, uid)]

0 comments on commit 0d63be6

Please sign in to comment.