Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - mkling

Pages: [1]
General / What's wrong in this script?
« on: July 16, 2019, 17:05:13 »
I'm getting this error   26:Uncaught SyntaxError: Unexpected Identifier

I'm trying to make a script that marks files in audio results. I want to mark a file in each pair  only if the bitrate is lower and the rating is lower.

Author: Similarity Team and edited by user
Version: 1.0
Mark files after scan only if tags restrictions satisfied. Priority by rating (you can simply change it).

// unmark all files;

// simple mark by lower bitrate
var dups =;
var dups1 = results.anaysis.dups;
for (var idx = 0; idx < dups.length; ++idx) {
    // skip counter-pair (1-2 and 2-1), process pair only once
    if (dups[idx].item1.path > dups[idx].item2.path) continue;
    // check for our special tag restrictions
    if (!checkRestrictions(dups[idx].item1, dups[idx].item2)) continue;
    // ok now we select by our priority
    if (dups[idx].item1.analysis.rating > dups[idx].item2.analysis.rating) and (dups1[idx] > dups1[idx] dups[idx].item2.marked = true;


Wishlist / variables in automark?
« on: July 16, 2019, 16:16:24 »
I do not like that currently it will mark a file with a 192kbs over a file with 128kbs when the ratings might be very close to each other.
Is it possible when comparing pairs of files in 'audio results' to automark the files with the lowest bit rate only if the ratings are with in 7% of each other.

Pages: [1]