Skip to content

Load a match from its match ID alone (#50) - #88

Merged
soodoku merged 1 commit into
masterfrom
optional-series-id
Oct 23, 2026
Merged

soodoku merged 1 commit into
masterfrom
optional-series-id

Conversation

@soodoku

@soodoku soodoku commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Match(match_id) now works without a series ID: it loads /matches/engine/match/{id}.html, which ESPNcricinfo redirects to the full match page, and reads series_id from the page. Passing the series ID still uses the direct full-scorecard URL.

Checked live on matches from the 1880s to 2026. #50's match: Match(729303) → series 695871, 'CSK won by 7 wickets'.

Refs #50

🤖 Generated with Claude Code

@soodoku
soodoku enabled auto-merge (squash) October 23, 2026 20:33
Match required a series ID that most callers do not have. Without one,
load ESPNcricinfo's legacy match URL, which redirects to the full match
page for any series, and read series_id from the page. Checked on matches
from the 1880s to 2026; #50's match 729303 loads as IPL 2014 (695871).

Refs #50

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@soodoku
soodoku force-pushed the optional-series-id branch from 279fe0b to 9623826 Compare October 23, 2026 20:45
@soodoku
soodoku merged commit 7607639 into master Oct 23, 2026
12 checks passed
@soodoku
soodoku deleted the optional-series-id branch October 23, 2026 20:51
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