fix: streams with both audio and video should always emit 'end'

This commit is contained in:
LuanRT
2021-10-14 19:13:22 -03:00
parent 783e6d2435
commit b9ea6e36c8

View File

@@ -299,7 +299,7 @@ class Innertube extends EventEmitter {
}
});
response.data.pipe(stream, true);
response.data.pipe(stream, { end: true });
} else {
const chunk_size = 1048576 * 10; // 10MB