Skip to content

Commit

Permalink
Merge pull request #435 from jshessen/master
Browse files Browse the repository at this point in the history
Extend genpts matches to include mpg|mpeg
  • Loading branch information
HaveAGitGat authored Sep 25, 2023
2 parents 99ad5b3 + 2a76f29 commit 77ac9c2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Community/Tdarr_Plugin_MC93_Migz1Remux.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,13 @@ 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';
}

Expand Down

0 comments on commit 77ac9c2

Please sign in to comment.