From c3b6ae1f0163e67b9ceddaf466d633b763597179 Mon Sep 17 00:00:00 2001 From: Ou Date: Wed, 9 Oct 2024 19:15:28 +0800 Subject: [PATCH] chore: remove sources --- server/sources/index.ts | 4 ---- shared/data.ts | 6 +++--- shared/sources.ts | 10 ---------- 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/server/sources/index.ts b/server/sources/index.ts index f437177..a5771c0 100644 --- a/server/sources/index.ts +++ b/server/sources/index.ts @@ -17,11 +17,7 @@ export const sourcesFn = { coolapk, cankaoxiaoxi, sputniknewscn, - "peopledaily": defineRSSSource("https://feedx.net/rss/people.xml", { - hiddenDate: true, - }), "douyin": defineFallbackSource("douyin"), - "aljazeeracn": defineRSSSource("https://feedx.net/rss/aljazeera.xml"), "toutiao": defineFallbackSource("toutiao"), "wallstreetcn": defineRSSHubSource("/wallstreetcn/live"), "36kr-quick": defineRSSHubSource("/36kr/newsflashes"), diff --git a/shared/data.ts b/shared/data.ts index 78dad1a..4d054d6 100644 --- a/shared/data.ts +++ b/shared/data.ts @@ -13,11 +13,11 @@ export const metadata: Metadata = { }, china: { name: "国内", - sources: ["peopledaily", "toutiao", "zhihu", "cankaoxiaoxi"], + sources: ["toutiao", "zhihu", "cankaoxiaoxi"], }, world: { - name: "国外", - sources: ["aljazeeracn", "sputniknewscn", "zaobao"], + name: "国际", + sources: ["sputniknewscn", "zaobao"], }, code: { name: "代码", diff --git a/shared/sources.ts b/shared/sources.ts index 3f60a3d..86d1a05 100644 --- a/shared/sources.ts +++ b/shared/sources.ts @@ -25,11 +25,6 @@ export const originSources = { name: "俄罗斯卫星通讯社", home: "https://sputniknews.cn", }, - "aljazeeracn": { - name: "半岛电视台", - interval: Time.half, - home: "https://chinese.aljazeera.net", - }, "cankaoxiaoxi": { name: "参考消息", interval: Time.half, @@ -83,11 +78,6 @@ export const originSources = { name: "IT之家", home: "https://www.ithome.com", }, - "peopledaily": { - name: "人民日报", - interval: 3 * 60 * 60 * 1000, - home: "http://paper.people.com.cn", - }, } as const satisfies Record export const sources = genSources()