mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-01 02:15:42 +00:00
refactor: clean up parser and tests (#387)
* tests: improve coverage * refactor: clean up nodes * chore: lint * feat(parser): ignore `BrandVideoShelf` Seems to be used for ads. * feat(parser): ignore `BrandVideoSingleton` too
This commit is contained in:
@@ -115,7 +115,7 @@ class FormatUtils {
|
||||
return;
|
||||
}
|
||||
|
||||
if ((chunk_end >= format.content_length) || options.range) {
|
||||
if ((chunk_end >= (format.content_length ? format.content_length : 0)) || options.range) {
|
||||
must_end = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user