From 11362bdf23735bddf33acba198d71d4c39a7a10c Mon Sep 17 00:00:00 2001 From: HCLonely Date: Tue, 5 May 2020 20:09:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E9=93=BE=E6=8E=A5=E4=BD=BF?= =?UTF-8?q?=E7=94=A8https?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 9 ++++++++- package.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) 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": {