Repository navigation
Look up seasons by two-year label (#76) - #86
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)accepts2024,"2024","2024/25","2024-25","2024/2025"; fetches only that season;NoSeasonErrorotherwise.Live:
Series(8044).season("2024/25").series_id == 1443056.Refs #76
🤖 Generated with Claude Code