Reorder v2 fix (#283)

* Fix ffmpeg bug (doesn't move image streams)

* Ignore reorder if png

* Fix lint
make-only-subtitle-default
HaveAGitGat 4 years ago committed by GitHub
parent e4d0ea0207
commit 3e4176423c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -113,7 +113,10 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
if (String(sortType.getValue(streams[j])).includes(String(items[i]))) { if (String(sortType.getValue(streams[j])).includes(String(items[i]))) {
if ( if (
streams[j].codec_long_name streams[j].codec_long_name
&& streams[j].codec_long_name.includes('image') && (
streams[j].codec_long_name.includes('image')
|| streams[j].codec_name.includes('png')
)
) { ) {
// do nothing, ffmpeg bug, doesn't move image streams // do nothing, ffmpeg bug, doesn't move image streams
} else { } else {

Loading…
Cancel
Save