Skip to content

Look up seasons by two-year label (#76) - #86

Merged
soodoku merged 2 commits into
masterfrom
season-label-lookup
Oct 23, 2026
Merged

soodoku merged 2 commits into
masterfrom
season-label-lookup

Conversation

@soodoku

@soodoku soodoku commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Issue #76 says series IDs for multi-year seasons can't be extracted. Each season of a league like the Big Bash League has its own series ID, but ESPN's core API labels the 2024/25 season 2024, so the label the site shows (2024/25) found nothing.

  • Season.label: '2024/25' when the season crosses New Year, else the year. Checked against match pages: BBL 2024 match → '2024/25', IPL 2025 match → '2025'.
  • Series.season(key) accepts 2024, "2024", "2024/25", "2024-25", "2024/2025"; fetches only that season; NoSeasonError otherwise.

Live: Series(8044).season("2024/25").series_id == 1443056.

Refs #76

🤖 Generated with Claude Code

soodoku and others added 2 commits October 23, 2026 13:20
Multi-year seasons (Big Bash League 2024/25) live under their own series
ID, but the core API labels them by start year only, so 2024/25 could not
be found by the label the site shows. Season.label derives it from the
season dates (checked against match pages: BBL 2024 -> '2024/25', IPL
2025 -> '2025'); Series.season() accepts either form and fetches only
the matching season.

Refs #76

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@soodoku
soodoku merged commit 4def2c9 into master Oct 23, 2026
12 checks passed
@soodoku
soodoku deleted the season-label-lookup branch October 23, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant