From 8d73b4086ec4bec7697b73d626c12640f8c00938 Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Mon, 30 Jun 2025 00:23:58 +0800 Subject: [PATCH] feat(route/udn): Refine `author` property (#19489) --- lib/routes/udn/breaking-news.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/udn/breaking-news.ts b/lib/routes/udn/breaking-news.ts index 687a1ceae..a24cc4563 100644 --- a/lib/routes/udn/breaking-news.ts +++ b/lib/routes/udn/breaking-news.ts @@ -94,7 +94,7 @@ async function handler(ctx) { return { title: item.title, - author: data.author.name, + author: [{ name: $('.article-content__author').text().match('中央社')?.at(0) }, { name: data.publisher.name.match('轉角國際 udn Global')?.at(0) }, data.author].filter((e) => Boolean(e.name)), description, pubDate: timezone(parseDate(item.time.date, 'YYYY-MM-DD HH:mm'), +8), category: [data.articleSection, vip ? $('.article-head li.breadcrumb__item:last > b').text() : $("meta[name='subsection']").attr('content'), ...data.keywords.split(',')],