diff --git a/lib/routes/lovelive-anime/topics.ts b/lib/routes/lovelive-anime/topics.ts index e7dfa8b34..b783d9979 100644 --- a/lib/routes/lovelive-anime/topics.ts +++ b/lib/routes/lovelive-anime/topics.ts @@ -109,12 +109,11 @@ async function handler(ctx) { const pubDate = timezone(parseDate(item.find('a > p.date').text(), 'YYYY/MM/DD'), +9); const title = item.find('a > p.title').text(); const category = item.find('a > p.category').text(); - const imglink = `${rootUrl}/${ - item - .find('a > img') - .attr('style') - .match(/background-image:url\((.*)\)/)[1] - }`; + const relativeImgLink = item + .find('a > img') + .attr('style') + .match(/background-image:url\((.*)\)/)[1]; + const imglink = new URL(relativeImgLink, baseUrl).href; return { link,