Fix only 480P & 360P

This commit is contained in:
the1812 2020-02-17 21:59:47 +08:00
parent 09000be5e0
commit 1e65ff4ba1
8 changed files with 10 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -69,7 +69,7 @@
"download-subtitle.min.js": "4B99A00FEEA40C6D577AC8BD8DFFD34D91B75E150C7848B965D58B0096DF762C",
"download-video.min.css": "9B7FFAC852999B11DB62B6467CDBA1AEE53B7F3FA6C592185281542B25AF527A",
"download-video.min.html": "B7EC01DF01DBA78A7B009BDA78865891A974F84A1D72964B7393A07E50D5E5F5",
"download-video.min.js": "17106554EA0409FD3653BDEE674D8BCF12AA88C2E321C71E000A54BBEEC372C9",
"download-video.min.js": "B61A2ADB1FF7490CED38E05F9B468733E5058B2BCB3BC21DBF40FB8CA252A517",
"download-video-package.min.js": "B10FF11DE7DFBACEC38F195B8E836511E527215B5E177CB1D223D14F30EB1435",
"dpi-img.vue.min.js": "11DF7577B754D8C01E8331E4FDAC9494E72523099845A0D6B0D897849CD841D6",
"expand-danmaku.min.js": "B21658C40085AEA8DC49652AE62EB8610BB2EBEAF7A9C9AF69EF3B11E08EEC8D",

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -129,11 +129,11 @@ class VideoFormat {
static async filterFormats(formats: VideoFormat[]) {
// return formats
if (userInfo === null) {
userInfo = await Ajax.getJsonWithCredentials('https://api.bilibili.com/x/web-interface/nav')
userInfo = (await Ajax.getJsonWithCredentials('https://api.bilibili.com/x/web-interface/nav')).data
}
_.remove(formats, f => {
const q = f.quality
if (!userInfo!.isLogin) {
if (userInfo!.isLogin === false) {
return q >= 64
}
if (userInfo!.vipStatus !== 1) {