mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-17 03:06:27 -07:00
Merge pull request #435 from jshessen/master
Extend genpts matches to include mpg|mpeg
This commit is contained in:
commit
77ac9c2d74
1 changed files with 7 additions and 2 deletions
|
|
@ -136,8 +136,13 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If Container .ts or .avi set genpts to fix unknown timestamp
|
// If Container .ts|.avi|.mpg|.mpeg set genpts to fix unknown timestamp
|
||||||
if (file.container.toLowerCase() === 'ts' || file.container.toLowerCase() === 'avi') {
|
if (
|
||||||
|
file.container.toLowerCase() === 'ts'
|
||||||
|
|| file.container.toLowerCase() === 'avi'
|
||||||
|
|| file.container.toLowerCase() === 'mpg'
|
||||||
|
|| file.container.toLowerCase() === 'mpeg'
|
||||||
|
) {
|
||||||
genpts = '-fflags +genpts';
|
genpts = '-fflags +genpts';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue