mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-24 02:08:55 +08:00
feat(route): no longer publish date available (#17475)
This commit is contained in:
@@ -8,7 +8,6 @@ import path from 'node:path';
|
||||
|
||||
import got from '@/utils/got';
|
||||
import { art } from '@/utils/render';
|
||||
import { parseDate } from '@/utils/parse-date';
|
||||
|
||||
const baseURL = 'https://freecomputerbooks.com/';
|
||||
|
||||
@@ -89,15 +88,6 @@ function buildPostItem(listItem, categoryTitle, cache) {
|
||||
: categoryTitle,
|
||||
};
|
||||
|
||||
const pubDateText = postInfo.find('span:last').text().replace(/^on /, '');
|
||||
if (pubDateText) {
|
||||
// Pretty much the same situation: Only a "Selected New Books" page has
|
||||
// explicit publication dates for posts; even on each post's details
|
||||
// page, there seems to be only the publication date for the book, but
|
||||
// the post's creation date is still missing.
|
||||
postItem.pubDate = parseDate(pubDateText);
|
||||
}
|
||||
|
||||
return cache.tryGet(postItem.link, () => insertDescriptionInto(postItem));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user