Fix reorder streams bug

This commit is contained in:
HaveAGitGat 2022-05-21 15:08:19 +01:00
parent 3ecd993796
commit 5e61c32889

View file

@ -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
&& (