fix: kaopu source

This commit is contained in:
ourongxing
2025-11-20 10:06:54 +00:00
parent 7e88e142b2
commit fa9f552d73
+4 -4
View File
@@ -2,17 +2,17 @@ type Res = {
description: string
link: string
// Date
pubDate: string
pub_date: string
publisher: string
title: string
}[]
export default defineSource(async () => {
const res = await Promise.all(["https://kaopustorage.blob.core.windows.net/jsondata/news_list_beta_hans_0.json", "https://kaopustorage.blob.core.windows.net/jsondata/news_list_beta_hans_1.json"].map(url => myFetch(url) as Promise<Res>))
return res.flat().filter(k => ["财新", "公视"].every(h => k.publisher !== h)).map((k) => {
const res: Res = await $fetch("https://kaopustorage.blob.core.windows.net/news-prod/news_list_hans_0.json")
return res.filter(k => ["财新", "公视"].every(h => k.publisher !== h)).map((k) => {
return {
id: k.link,
title: k.title,
pubDate: k.pubDate,
pubDate: k.pub_date,
extra: {
hover: k.description,
info: k.publisher,