mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Reject split videos
This commit is contained in:
parent
dbb16312af
commit
7b0f94961f
@ -66,14 +66,15 @@
|
|||||||
{
|
{
|
||||||
reject("获取下载链接失败, 请确认当前账号有下载权限后重试.");
|
reject("获取下载链接失败, 请确认当前账号有下载权限后重试.");
|
||||||
}
|
}
|
||||||
else
|
const urls = data.durl;
|
||||||
|
this.fragments = urls.map(it => new VideoInfoFragment(
|
||||||
|
it.length, it.size, it.url, it.backup_url
|
||||||
|
));
|
||||||
|
if (this.fragments.length > 1)
|
||||||
{
|
{
|
||||||
const urls = data.durl;
|
reject("暂不支持分段视频的下载.");
|
||||||
this.fragments = urls.map(it => new VideoInfoFragment(
|
|
||||||
it.length, it.size, it.url, it.backup_url
|
|
||||||
));
|
|
||||||
resolve();
|
|
||||||
}
|
}
|
||||||
|
resolve();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user