feat(route): fix issues for ESPN News (#16854)

* feat(route): add feed for ESPN News

* fix(route): change feeds and full-text fetching way based on code reviews

* fix(route): filter feeds by accepted type first

* fix(route): changes based on code reviews

* feat: support video playback

* fix: out of bound

* chore: fix docs and maintainer
This commit is contained in:
Weijan(David) :Duan 2024-09-22 20:10:32 +08:00 committed by GitHub
parent 2072a6333f
commit e71d4758cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 9 deletions

View File

@ -30,21 +30,21 @@ const mediaPattern = /(photo|video)(\d+)/;
export const route: Route = {
path: '/news/:sport',
name: 'News',
maintainers: ['GymRat102'],
maintainers: ['weijianduan0302'],
example: '/espn/news/nba',
categories: ['traditional-media'],
parameters: { sport: 'sport category, can be nba, nfl, mlb, nhl etc.' },
description: `Get the news feed of the sport you love on ESPN.
| Sport | sport | Sport | sport |
|----------------------|---------|----------------|---------|
| 🏀NBA | nba | 🎾Tennis | tennis |
| 🏀WNBA | wnba | Golf | golf |
| 🏈NFL | nfl | 🏏Cricket | cricket |
| MLB | mlb | Soccer | soccer |
| 🏒NHL | nhl | 🏎F1 | f1 |
| College Basketball | ncb | 🥊MMA | mma |
| 🏟College Football | ncf | 🏈UFL | ufl |
| 🏉Rugby | rugby | 🃏Poker | poker |`,
| 🏀 NBA | nba | 🎾 Tennis | tennis |
| 🏀 WNBA | wnba | Golf | golf |
| 🏈 NFL | nfl | 🏏 Cricket | cricket |
| MLB | mlb | Soccer | soccer |
| 🏒 NHL | nhl | 🏎 F1 | f1 |
| College Basketball | ncb | 🥊 MMA | mma |
| 🏟 College Football | ncf | 🏈 UFL | ufl |
| 🏉 Rugby | rugby | 🃏 Poker | poker |`,
radar: [
{
source: ['espn.com/:sport*'],