From 5e61c32889b2d0b94bafed77bc80f9ca83fb0cec Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sat, 21 May 2022 15:08:19 +0100 Subject: [PATCH] Fix reorder streams bug --- Community/Tdarr_Plugin_00td_action_re_order_all_streams_v2.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Community/Tdarr_Plugin_00td_action_re_order_all_streams_v2.js b/Community/Tdarr_Plugin_00td_action_re_order_all_streams_v2.js index 779ec41..4f162b2 100644 --- a/Community/Tdarr_Plugin_00td_action_re_order_all_streams_v2.js +++ b/Community/Tdarr_Plugin_00td_action_re_order_all_streams_v2.js @@ -1,4 +1,3 @@ -// tdarrSkipTest const details = () => ({ id: 'Tdarr_Plugin_00td_action_re_order_all_streams_v2', Stage: 'Pre-processing', @@ -118,7 +117,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { for (let i = 0; i < items.length; i += 1) { const matchedStreams = []; for (let j = 0; j < streams.length; j += 1) { - if (String(sortType.getValue(streams[j])).includes(String(items[i]))) { + if (String(sortType.getValue(streams[j])) === String(items[i])) { if ( streams[j].codec_long_name && (