Reject split videos

This commit is contained in:
the1812 2018-10-25 00:09:09 +08:00
parent dbb16312af
commit 7b0f94961f

View File

@ -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();
}); });
}); });
} }