mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 19:42:14 +00:00
fix: don't limit range end
This commit is contained in:
@@ -405,8 +405,7 @@ class Innertube extends EventEmitter {
|
||||
response.data.pipe(stream, { end: true });
|
||||
} else {
|
||||
const chunk_size = 1048576 * 10; // 10MB
|
||||
options.range && (options.range.end > chunk_size && (options.range.end = chunk_size));
|
||||
|
||||
|
||||
let chunk_start = (options.range && options.range.start || 0);
|
||||
let chunk_end = (options.range && options.range.end || chunk_size);
|
||||
let downloaded_size = 0;
|
||||
|
||||
Reference in New Issue
Block a user