mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-01-11 22:40:22 +00:00
do not concat null sources
This commit is contained in:
parent
6e85f16afc
commit
354774b23b
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ function enrichStreamSources(stream) {
|
|||
return { ...stream, sources };
|
||||
}
|
||||
if (RUSSIAN_PROVIDERS.includes(provider)) {
|
||||
const sources = unique([].concat(stream.sources).concat(getSources(ALL_RUSSIAN_TRACKERS, stream.infoHash)));
|
||||
const sources = unique([].concat(stream.sources || []).concat(getSources(ALL_RUSSIAN_TRACKERS, stream.infoHash)));
|
||||
return { ...stream, sources };
|
||||
}
|
||||
return stream;
|
||||
|
|
|
|||
Loading…
Reference in a new issue