Files
RSSHub/lib/v2/thepaper/radar.js
Felix Hsu fe50f9cb18 fix(route): thepaper changes its site to nextjs based backend, so change the feeder (#10850)
* fix(route) thepaper now use nextjs as backend

* Id to Name for channel and list

* summary ok

* determine the detail by null check instead of type check

* list_url for better reading

* add failback of thumbnail

* fix video article

* add list for thepaper

* add list for thepaper

* del the dup line

* small fix and optimize

* add maintainer
2022-09-21 22:53:50 +08:00

43 lines
1.5 KiB
JavaScript

module.exports = {
'thepaper.cn': {
_name: '澎湃新闻',
'.': [
{
title: '首页头条',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-shou-ye-tou-tiao',
source: ['/'],
target: '/thepaper/featured',
},
{
title: '频道',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-pin-dao',
source: ['/'],
target: (params, url) => `/thepaper/channel/${new URL(url).search(/channel_(\d+)/)}`,
},
{
title: '栏目',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-lie-biao',
source: ['/'],
target: (params, url) => `/thepaper/list/${new URL(url).search(/list_(\d+)/)}`,
},
{
title: '澎湃美数组作品集',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-peng-pai-mei-shu-zuo-pin-ji',
source: ['/'],
target: '/thepaper/839studio/:id',
},
],
},
'factpaper.cn': {
_name: '澎湃新闻',
'.': [
{
title: '明查',
docs: 'https://docs.rsshub.app/traditional-media.html#peng-pai-xin-wen-ming-cha',
source: ['/'],
target: '/thepaper/factpaper/:status',
},
],
},
};