diff --git a/dist/bilibili-bangumi.js b/dist/bilibili-bangumi.js index e96e9f5..9c07a86 100644 --- a/dist/bilibili-bangumi.js +++ b/dist/bilibili-bangumi.js @@ -1 +1 @@ -/*! Bilibili-Bangumi-JS v1.0.4 | Hans362 (https://hans362.cn) | https://bilibili-bangumi-js.vercel.app | MIT License */"use strict";var bangumiJson=(apiUrl||"https://bilibili-bangumi-js.vercel.app/api")+"?vmid="+userId+"&token="+(new Date).getTime()+Math.random();function getPage(t){$.getJSON(bangumiJson+"&pn="+t,function(e){1==t?$(".bgm-collection").empty():$(".bgm-navigator").remove(),$.each(e.data.list,function(e,t){var a=0;t.is_finish?a=t.total_count:t.is_started&&"即将开播"!=t.new_ep.index_show?(a=t.new_ep.title,$.isNumeric(a)||(a=t.total_count)):a=0,a<0&&(a=0);var i=0;t.is_started?0<=t.progress.indexOf("已看完")?i=a:void 0!==t.progress&&-1==t.progress.indexOf("PV")?(i=t.progress.substring(t.progress.indexOf("第")+1,t.progress.indexOf("话")),$.isNumeric(i)||(i=a)):i=0:i=0;var s=i/a*100,n=t.cover.replace("http","https");$(".bgm-collection").append('\n \n \n
\n '+t.title+'\n '+t.evaluate+'\n
\n
\n 进度:'+i+" / "+a+"\n
\n
\n
\n ")}),t\n 加载更多\n \n ')})}getPage(1); \ No newline at end of file +/*! Bilibili-Bangumi-JS v1.0.4 | Hans362 (https://hans362.cn) | https://bilibili-bangumi-js.vercel.app | MIT License */"use strict";var bangumiJson=(apiUrl||"https://bilibili-bangumi-js.vercel.app/api")+"?vmid="+userId+"&token="+(new Date).getTime()+Math.random();function getPage(n){$.getJSON(bangumiJson+"&pn="+n,function(t){1==n?$(".bgm-collection").empty():$(".bgm-navigator").remove(),$.each(t.data.list,function(t,n){var e=0;n.is_finish?e=n.total_count:n.is_started&&"即将开播"!=n.new_ep.index_show?(e=n.new_ep.title,$.isNumeric(e)||(e=n.total_count)):e=0,e<0&&(e=0);var i=0;n.is_started?0<=n.progress.indexOf("已看完")?i=e:void 0!==n.progress&&-1==n.progress.indexOf("PV")?(i=n.progress.substring(n.progress.indexOf("第")+1,n.progress.indexOf("话")),$.isNumeric(i)||(i=e)):i=0:i=0;var s=i/e*100,a=n.cover.replace("http","https");$(".bgm-collection").append('\n \n \n
\n '+n.title+'\n '+n.evaluate+'\n
\n
\n 进度:'+i+" / "+e+"\n
\n
\n
\n ")}),n\n + 加载更多 `) }