feat(route/udn): Refine author property (#19489)
This commit is contained in:
@@ -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(',')],
|
||||
|
||||
Reference in New Issue
Block a user