diff --git a/index.js b/index.js index 15a89d6..6d90fc7 100644 --- a/index.js +++ b/index.js @@ -60,11 +60,18 @@ async function getBangumi(vmid, status, pn) { let data = response.data.data; let list = data.list; for (let bangumi of list) { + let cover = bangumi.cover + if (cover){ + let href = new URL(cover) + href.protocol = 'https' + href.pathname += '@220w_280h.webp' + cover = href.href + } $data.push({ title: bangumi.title, type: bangumi.season_type_name, area: bangumi.areas[0].name, - cover: bangumi.cover + "@220w_280h.webp", + cover: cover, totalCount: total(bangumi.total_count), id: bangumi.media_id, follow: count(bangumi.stat.follow), diff --git a/package.json b/package.json index e7b790b..81b90b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-bilibili-bangumi", - "version": "1.1.11", + "version": "1.1.12", "description": "hexo bilibili番剧页", "main": "index.js", "scripts": {