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:
parent
2072a6333f
commit
e71d4758cd
|
|
@ -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*'],
|
||||
|
|
|
|||
Loading…
Reference in New Issue