do not concat null sources

This commit is contained in:
TheBeastLT
2023-03-26 14:52:57 +02:00
committed by GitHub
parent 6e85f16afc
commit 354774b23b

View File

@@ -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;