From 3b9502e6557e02486eeafaf7ae71958ad2bfdd04 Mon Sep 17 00:00:00 2001 From: Jeff Hessenflow Date: Fri, 25 Aug 2023 09:55:10 -0500 Subject: [PATCH 1/2] Extend genpts matches to include mpg|mpeg Extend match to include additional container extensions. --- Community/Tdarr_Plugin_MC93_Migz1Remux.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Community/Tdarr_Plugin_MC93_Migz1Remux.js b/Community/Tdarr_Plugin_MC93_Migz1Remux.js index 9ba65b768..554746382 100644 --- a/Community/Tdarr_Plugin_MC93_Migz1Remux.js +++ b/Community/Tdarr_Plugin_MC93_Migz1Remux.js @@ -136,8 +136,8 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { return response; } - // If Container .ts or .avi set genpts to fix unknown timestamp - if (file.container.toLowerCase() === 'ts' || file.container.toLowerCase() === 'avi') { + // If Container .ts|.avi|.mpg|.mpeg set genpts to fix unknown timestamp + if (file.container.toLowerCase() === 'ts' || file.container.toLowerCase() === 'avi' || file.container.toLowerCase() === 'mpg' || file.container.toLowerCase() === 'mpeg') { genpts = '-fflags +genpts'; } From 2a76f29f815243fa5a814e3a1c9489585544fb13 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Mon, 25 Sep 2023 08:10:35 +0100 Subject: [PATCH 2/2] Fix lint length error --- Community/Tdarr_Plugin_MC93_Migz1Remux.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Community/Tdarr_Plugin_MC93_Migz1Remux.js b/Community/Tdarr_Plugin_MC93_Migz1Remux.js index 554746382..02fc7a15d 100644 --- a/Community/Tdarr_Plugin_MC93_Migz1Remux.js +++ b/Community/Tdarr_Plugin_MC93_Migz1Remux.js @@ -137,7 +137,12 @@ const plugin = (file, librarySettings, inputs, otherArguments) => { } // If Container .ts|.avi|.mpg|.mpeg set genpts to fix unknown timestamp - if (file.container.toLowerCase() === 'ts' || file.container.toLowerCase() === 'avi' || file.container.toLowerCase() === 'mpg' || file.container.toLowerCase() === 'mpeg') { + if ( + file.container.toLowerCase() === 'ts' + || file.container.toLowerCase() === 'avi' + || file.container.toLowerCase() === 'mpg' + || file.container.toLowerCase() === 'mpeg' + ) { genpts = '-fflags +genpts'; }