diff --git a/static/style.css b/static/style.css index e6c80dd..641e440 100644 --- a/static/style.css +++ b/static/style.css @@ -362,7 +362,7 @@ span.mono { font-family: monospace; } span.light { color: #CCC; } span.medium { color: #AAA; } -span.source-confidence { font-weight: bold; } +span.source-similarity { font-weight: bold; } span.source-suspect { color: #900; } span.source-possible { color: #990; } span.source-novio { color: #090; } diff --git a/templates/api.mako b/templates/api.mako index befaf2f..226e6e0 100644 --- a/templates/api.mako +++ b/templates/api.mako @@ -116,7 +116,7 @@
noskip | boolean | No (default: false) | -If a suspected source is found during a check to have a sufficiently high confidence value, the check will end prematurely, and other pending URLs will be skipped. Passing this option will prevent this behavior, resulting in complete (but more time-consuming) checks. | +If a suspected source is found during a check to have a sufficiently high similarity value, the check will end prematurely, and other pending URLs will be skipped. Passing this option will prevent this behavior, resulting in complete (but more time-consuming) checks. |
In the case of action=search, sources will contain one entry for each source checked (or skipped if the check ends early), sorted in order of confidence, with skipped and excluded sources at the bottom.
+In the case of action=search, sources will contain one entry for each source checked (or skipped if the check ends early), sorted by similarity, with skipped and excluded sources at the bottom.
In the case of action=compare, best will always contain information about the URL that was given, so response["best"]["url"] will never be null. Also, sources will always contain one entry, with the same data as best, since only one source is checked in comparison mode.
Valid responses for action=sites are formatted like this:
{ diff --git a/templates/index.mako b/templates/index.mako index 1d4a1ac..fa5bc28 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -199,7 +199,7 @@ % endif${round(result.confidence * 100, 1)}%-confidence+similarity% if result.url: @@ -252,7 +252,7 @@ % for i, source in enumerate(result.sources): @@ -265,7 +265,7 @@ <% skips = True %> Skipped % else: - = T_SUSPECT else "source-possible" if source.confidence >= T_POSSIBLE else "source-novio"}">${round(source.confidence * 100, 1)}% + = T_SUSPECT else "source-possible" if source.confidence >= T_POSSIBLE else "source-novio"}">${round(source.confidence * 100, 1)}% % endif URL -Confidence +Similarity Compare @@ -281,12 +281,12 @@ % endif % if len(result.sources) > 10: % endif % if skips or result.possible_miss: % endif