JarBinks-Updates/Fixes/Bugs

- Changed stats update range from 21 to 45 days
- Changed logic error to ensure 2nd plugin only runs after first one is done (BUG)
make-only-subtitle-default
JarBinks 6 years ago committed by GitHub
parent 90ff03b668
commit cba8723042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,7 +1,7 @@
//////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Author: JarBinks
// Date: 05/21/2020
// Author: JarBinks, Zachg99, Jeff47
// Date: 06/29/2020
//
// This is my attempt to create an all in one routine that will maintain my library in optimal format !!!!FOR MY REQUIREMENTS!!!!
// Chances are very good you will need to make some changes to this routine and it's partner in order to make it work for you
@ -153,7 +153,7 @@ function plugin(file, librarySettings, inputs) {
var currentfilename = file._id; //.replace(/'/g, "'\"'\"'");
var intStatsDays = 21;
var intStatsDays = 45;
var bolHasChapters = false;
var bolAudioIsEng = false;
var bolStatsAreCurrent = false;
@ -169,7 +169,7 @@ function plugin(file, librarySettings, inputs) {
var objMedInfo = "";
objMedInfo = JSON.parse(require("child_process").execSync('mediainfo "' + currentfilename + '" --output=JSON').toString());
//////////////////////////////////////////////////////////////////////////////////////////////////////
if (objMedInfo.media.track[0].extra == undefined && objMedInfo.media.track[0].extra.JBDONEVERSION == undefined && objMedInfo.media.track[0].extra.JBDONEVERSION != "1") {
if (objMedInfo.media.track[0].extra == undefined || objMedInfo.media.track[0].extra.JBDONEVERSION == undefined || objMedInfo.media.track[0].extra.JBDONEVERSION != "1") {
response.infoLog += "File not processed by first routine! \n";
return response;
}
@ -293,4 +293,3 @@ function plugin(file, librarySettings, inputs) {
module.exports.details = details;
module.exports.plugin = plugin;

Loading…
Cancel
Save