From a74f1260ec4d03a98035c4ae0448a206097f57e0 Mon Sep 17 00:00:00 2001 From: fossephate Date: Thu, 27 Jun 2024 11:13:22 -0700 Subject: [PATCH 1/2] allow plugin to process more subtitle types --- .../Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js b/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js index d6869df6c..f8610e8fe 100644 --- a/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js +++ b/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js @@ -57,7 +57,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { return response; } - const subsArr = file.ffProbeData.streams.filter((row) => row.codec_name === 'subrip'); + const subsArr = file.ffProbeData.streams.filter((row) => (["subrip", "ass", "ssa", "text"].includes(row.codec_name))); if (subsArr.length === 0) { response.infoLog += 'No subs in file to extract!\n'; From 67517859461402a25c95dfe0238091537d7edfee Mon Sep 17 00:00:00 2001 From: fossephate Date: Fri, 28 Jun 2024 12:40:26 -0700 Subject: [PATCH 2/2] use single quotes --- .../Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js b/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js index f8610e8fe..fad9fb495 100644 --- a/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js +++ b/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js @@ -57,7 +57,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { return response; } - const subsArr = file.ffProbeData.streams.filter((row) => (["subrip", "ass", "ssa", "text"].includes(row.codec_name))); + const subsArr = file.ffProbeData.streams.filter((row) => (['subrip', 'ass', 'ssa', 'text'].includes(row.codec_name))); if (subsArr.length === 0) { response.infoLog += 'No subs in file to extract!\n';