Merge pull request #76 from Migz93/master

Migz Plugins - Fixes
This commit is contained in:
HaveAGitGat 2020-05-25 01:23:41 +01:00 committed by GitHub
commit 821f706756
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 11 deletions

View file

@ -62,11 +62,6 @@ function plugin(file, librarySettings, inputs) {
response.container = "." + inputs.container;
}
// Check if file is MKV, if so then add extra argument to drop data. MKV does not support data streams.
if (inputs.container == "mkv") {
extraArguments += "-map -0:d ";
}
// Check if file is a video. If it isn't then exit plugin.
if (file.fileMedium !== "video") {
response.processFile = false;
@ -111,6 +106,11 @@ function plugin(file, librarySettings, inputs) {
}
}
// Check if file is MKV, if so then add extra argument to drop data. MKV does not support data streams.
if (inputs.container == "mkv") {
extraArguments += `-map -0:d `;
}
// Check if 10bit variable is true.
if (inputs.enable_10bit == "true") {
// If set to true then add 10bit argument

View file

@ -62,11 +62,6 @@ function plugin(file, librarySettings, inputs) {
response.container = "." + inputs.container;
}
// Check if file is MKV, if so then add extra argument to drop data. MKV does not support data streams.
if (inputs.container == "mkv") {
extraArguments += "-map -0:d ";
}
// Check if file is a video. If it isn't then exit plugin.
if (file.fileMedium !== "video") {
response.processFile = false;
@ -111,6 +106,11 @@ function plugin(file, librarySettings, inputs) {
}
}
// Check if file is MKV, if so then add extra argument to drop data. MKV does not support data streams.
if (inputs.container == "mkv") {
extraArguments += `-map -0:d `;
}
// Check if 10bit variable is true.
if (inputs.enable_10bit == "true") {
// If set to true then add 10bit argument

View file

@ -109,7 +109,7 @@ function plugin(file, librarySettings, inputs) {
file.ffProbeData.streams[i].tags.title.toLowerCase().includes("sdh"))
) {
ffmpegCommandInsert += `-map -0:s:${subtitleIdx} `;
response.infoLog += `☒Subtitle stream detected as being Commentary or Description, removing. Subtitle stream 0:s:${SubtitleIdx} - ${file.ffProbeData.streams[i].tags.title}. \n`;
response.infoLog += `☒Subtitle stream detected as being Commentary or Description, removing. Subtitle stream 0:s:${subtitleIdx} - ${file.ffProbeData.streams[i].tags.title}. \n`;
convert = true;
}
} catch (err) {}