mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-01-11 22:40:22 +00:00
fix bingeGroup npe
This commit is contained in:
parent
b43da7a882
commit
12286cba02
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ function filterByQuality(streams, config) {
|
|||
const filterOptions = QualityFilter.options.filter(option => filters.includes(option.key));
|
||||
return streams.filter(stream => {
|
||||
const streamQuality = stream.name.split('\n')[1];
|
||||
const bingeGroup = stream.behaviorHints.bingeGroup;
|
||||
const bingeGroup = stream.behaviorHints?.bingeGroup;
|
||||
return !filterOptions.some(option => option.test(streamQuality, bingeGroup));
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue