mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 22:54:37 +02:00
Compare SAUCE for --update propertly
This commit is contained in:
parent
6b02ddbdae
commit
78484a2352
1 changed files with 6 additions and 1 deletions
|
@ -257,11 +257,16 @@ function scanFileAreaForChanges(areaInfo, options, cb) {
|
||||||
const optTags = Array.isArray(options.tags) ? new Set(options.tags) : existingEntry.hashTags;
|
const optTags = Array.isArray(options.tags) ? new Set(options.tags) : existingEntry.hashTags;
|
||||||
const tagsEq = _.isEqual(optTags, existingEntry.hashTags);
|
const tagsEq = _.isEqual(optTags, existingEntry.hashTags);
|
||||||
|
|
||||||
|
let descSauceCompare;
|
||||||
|
if(existingEntry.meta.desc_sauce) {
|
||||||
|
descSauceCompare = JSON.stringify(existingEntry.meta.desc_sauce);
|
||||||
|
}
|
||||||
|
|
||||||
if( tagsEq &&
|
if( tagsEq &&
|
||||||
fileEntry.desc === existingEntry.desc &&
|
fileEntry.desc === existingEntry.desc &&
|
||||||
fileEntry.descLong === existingEntry.descLong &&
|
fileEntry.descLong === existingEntry.descLong &&
|
||||||
fileEntry.meta.est_release_year === existingEntry.meta.est_release_year &&
|
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');
|
console.info('Dupe');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue