mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Bug fixes
This commit is contained in:
parent
b95e4a1ceb
commit
495966376f
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
min/download-video.min.js
vendored
2
min/download-video.min.js
vendored
File diff suppressed because one or more lines are too long
@ -81,7 +81,7 @@
|
||||
this.loaded = 0;
|
||||
this.totalSize = null;
|
||||
this.workingXhr = null;
|
||||
this.fragmentSplitFactor = 8;
|
||||
this.fragmentSplitFactor = 6 * 5;
|
||||
}
|
||||
fetchVideoInfo()
|
||||
{
|
||||
@ -125,7 +125,7 @@
|
||||
const promises = [];
|
||||
const partialLength = Math.round(fragment.size / this.fragmentSplitFactor);
|
||||
let startByte = 0;
|
||||
while (startByte <= fragment.size)
|
||||
while (startByte < fragment.size)
|
||||
{
|
||||
const range = `bytes=${startByte}-${Math.min(fragment.size - 1, Math.round(startByte + partialLength))}`;
|
||||
promises.push(new Promise((resolve, reject) =>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user