mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): 中华人民共和国交通运输部统计数据文件 (#13937)
This commit is contained in:
@@ -32,7 +32,7 @@ module.exports = async (ctx) => {
|
||||
items = await Promise.all(
|
||||
items.map((item) =>
|
||||
ctx.cache.tryGet(item.link, async () => {
|
||||
if (/\.gov\.cn/.test(item.link)) {
|
||||
if (/\.gov\.cn/.test(item.link) && item.link.endsWith('.html')) {
|
||||
const { data: detailResponse } = await got(item.link);
|
||||
|
||||
const content = cheerio.load(detailResponse);
|
||||
|
||||
Reference in New Issue
Block a user