From e71d4758cd506f7755830aabd171e3ccfff174af Mon Sep 17 00:00:00 2001 From: "Weijan(David) :Duan" Date: Sun, 22 Sep 2024 20:10:32 +0800 Subject: [PATCH] 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 --- lib/routes/espn/news.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/routes/espn/news.ts b/lib/routes/espn/news.ts index 44dd72c0a..154cb72cd 100644 --- a/lib/routes/espn/news.ts +++ b/lib/routes/espn/news.ts @@ -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*'],