fix(route): Sputnik News Pubdate (#10820)
This commit is contained in:
parent
647328222a
commit
1400df76cc
|
|
@ -70,6 +70,8 @@ module.exports = async (ctx) => {
|
|||
|
||||
const content = cheerio.load(detailResponse.data);
|
||||
|
||||
item.pubDate = parseDate(content('a[data-unixtime]').attr('data-unixtime') * 1000);
|
||||
|
||||
item.category = content('.tag__text')
|
||||
.toArray()
|
||||
.map((tag) => content(tag).text());
|
||||
|
|
@ -78,7 +80,6 @@ module.exports = async (ctx) => {
|
|||
content('div[data-type="article"]').remove();
|
||||
|
||||
item.description = content('.article').html();
|
||||
item.pubDate = parseDate(content('div[itemprop="datePublished"]').attr('data-unixtime'));
|
||||
|
||||
return item;
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue