diff --git a/lib/routes/bookwalkertw/news.js b/lib/routes/bookwalkertw/news.js index 6e7a0dda60..785acd0d02 100644 --- a/lib/routes/bookwalkertw/news.js +++ b/lib/routes/bookwalkertw/news.js @@ -20,7 +20,7 @@ module.exports = async (ctx) => { list .map((index, item) => { item = $(item); - bookid = item.find('a').attr('href').substring(38, 43); + bookid = item.find('a').attr('href').split('/')[4]; return { title: item.find('.bookname').text(), description: `${item.find('.booknamesub').text()} | ${item.find('.bprice').text()}
`, diff --git a/lib/routes/erbingapp/news.js b/lib/routes/erbingapp/news.js index 9bfea1af82..868b126e27 100644 --- a/lib/routes/erbingapp/news.js +++ b/lib/routes/erbingapp/news.js @@ -17,6 +17,8 @@ module.exports = async (ctx) => { let description = item.content; if (item.video_img !== null) { description += `
`; + } else if (item.acontent.indexOf('104129') !== -1) { + description += `
`; } else { const imgs = item.acontent.split(','); for (let i = 0; i < imgs.length; i++) {