fix(route/nmc): update selectors (#21854)

This commit is contained in:
Tony
2026-04-29 13:34:34 +08:00
committed by GitHub
parent e06a6dee24
commit cf2f06cdd7
+1 -11
View File
@@ -24,7 +24,7 @@ export const handler = async (ctx: Context): Promise<Data> => {
const language = $('html').attr('lang') ?? 'zh';
const items: DataItem[] =
$('div#home div[data-img]').length === 0
$('div.row div[data-img]').length === 0
? $('div#text')
.slice(0, limit)
.toArray()
@@ -352,10 +352,6 @@ export const route: Route = {
label: '台风海洋 - 台风命名',
value: 'typhoon/typhoon-name/index/html',
},
{
label: '台风海洋 - 台风综合信息',
value: 'http://typhoon/nmc.cn',
},
{
label: '全球预报 - 全球天气公报',
value: 'quanqiuyubao/quanqiutianqigongbao/index/html',
@@ -527,7 +523,6 @@ export const route: Route = {
| [北太平洋分析与预报](https://www.nmc.cn/publish/marine/h000.html) | [marine/h000/html](https://rsshub.app/nmc/publish/marine/h000/html) |
| [全球热带气旋监测公报](https://www.nmc.cn/publish/typhoon/totalcyclone.htm) | [typhoon/totalcyclone/htm](https://rsshub.app/nmc/publish/typhoon/totalcyclone/htm) |
| [台风命名](https://www.nmc.cn/publish/typhoon/typhoon-name/index.html) | [typhoon/typhoon-name/index/html](https://rsshub.app/nmc/publish/typhoon/typhoon-name/index/html) |
| [台风综合信息](http://typhoon.nmc.cn) | [http://typhoon/nmc.cn](https://rsshub.app/nmc/publish/http://typhoon/nmc.cn) |
#### [全球预报](https://www.nmc.cn/publish/quanqiuyubao/quanqiutianqigongbao/index.html)
@@ -843,11 +838,6 @@ export const route: Route = {
source: ['www.nmc.cn/publish/typhoon/typhoon-name/index.html'],
target: '/publish/typhoon/typhoon-name/index/html',
},
{
title: '台风海洋 - 台风综合信息',
source: ['typhoon.nmc.cn'],
target: '/publish/http://typhoon/nmc.cn',
},
{
title: '全球预报 - 全球天气公报',
source: ['www.nmc.cn/publish/quanqiuyubao/quanqiutianqigongbao/index.html'],