mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: 简阅(simpread) changelog结构bug修复适配
This commit is contained in:
@@ -16,19 +16,10 @@ module.exports = async (ctx) => {
|
||||
const month_day = $(item).find('.day').html();
|
||||
let version = '';
|
||||
let detail = '';
|
||||
|
||||
// 结构异化-收个version与后续version不同级
|
||||
if (index === 0) {
|
||||
// 版本名称处理
|
||||
version = $($(item).find('.num > a')[0]).clone().children().remove().end().text();
|
||||
// detail处理
|
||||
detail = $($(item).find('.details')[0]);
|
||||
} else {
|
||||
// 版本名称处理
|
||||
version = $(item).find('.num > a').clone().children().remove().end().text();
|
||||
// detail处理
|
||||
detail = $(item).find('.details');
|
||||
}
|
||||
// 版本名称处理
|
||||
version = $(item).find('.num > a').clone().children().remove().end().text();
|
||||
// detail处理
|
||||
detail = $(item).find('.details');
|
||||
if (version === '') {
|
||||
version = $(item).find('.num').clone().children().remove().end().text();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user