Skip to content

Commit

Permalink
Fix classifica senza indicare l'anno
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobsilvio committed Jan 3, 2025
1 parent bccab5b commit 3771813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/calcio_live/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ async def _build_url(self):
base_url = "https://site.web.api.espn.com/apis/v2/sports/soccer"
base_url_2 = "https://site.api.espn.com/apis/site/v2/sports/soccer"

standings_url = f"{base_url}/{self._code}/standings?season={datetime.now().year}"
standings_url = f"{base_url}/{self._code}/standings?"
match_day_url = f"{base_url_2}/{self._code}/scoreboard?limit=100&dates={self._start_date.strftime('%Y%m%d')}-{self._end_date.strftime('%Y%m%d')}"
team_url_schedule = f"{base_url_2}/{self._code}/scoreboard?limit=1000&dates={season_start}-{season_end}"

Expand Down

0 comments on commit 3771813

Please sign in to comment.