From 354774b23b9b7c831464b36d00e4ef96743792b2 Mon Sep 17 00:00:00 2001 From: TheBeastLT <39882951+TheBeastLT@users.noreply.github.com> Date: Sun, 26 Mar 2023 14:52:57 +0200 Subject: [PATCH] do not concat null sources --- addon/lib/magnetHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/lib/magnetHelper.js b/addon/lib/magnetHelper.js index 1fca492..7412356 100644 --- a/addon/lib/magnetHelper.js +++ b/addon/lib/magnetHelper.js @@ -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;