Skip to content

Commit

Permalink
图片链接使用https
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed May 5, 2020
1 parent 77ffa90 commit 11362bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-bilibili-bangumi",
"version": "1.1.11",
"version": "1.1.12",
"description": "hexo bilibili番剧页",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 11362bd

Please sign in to comment.