From 78484a235292cf46013dd14bd27d79c3c6d9d16f Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 29 Dec 2018 13:28:08 -0700 Subject: [PATCH] Compare SAUCE for --update propertly --- core/oputil/oputil_file_base.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/oputil/oputil_file_base.js b/core/oputil/oputil_file_base.js index f1956cce..4dc25fd2 100644 --- a/core/oputil/oputil_file_base.js +++ b/core/oputil/oputil_file_base.js @@ -257,11 +257,16 @@ function scanFileAreaForChanges(areaInfo, options, cb) { const optTags = Array.isArray(options.tags) ? new Set(options.tags) : existingEntry.hashTags; const tagsEq = _.isEqual(optTags, existingEntry.hashTags); + let descSauceCompare; + if(existingEntry.meta.desc_sauce) { + descSauceCompare = JSON.stringify(existingEntry.meta.desc_sauce); + } + if( tagsEq && fileEntry.desc === existingEntry.desc && fileEntry.descLong === existingEntry.descLong && fileEntry.meta.est_release_year === existingEntry.meta.est_release_year && - fileEntry.meta.desc_sauce === existingEntry.meta.desc_sauce + fileEntry.meta.desc_sauce === descSauceCompare ) { console.info('Dupe');