02744f6654
- beets_service: filter params now use truthy checks instead of `is not None`, since a real <select> left on "(any)" submits an empty string, not an absent param -- the filter form silently matched zero rows for any real submission. Also match grouping tokens within "; "-joined multi-playlist values instead of requiring an exact string match. - dashboard: credential status renders as compact dot indicators instead of badge+text chips, so long scope names (telegram) stay on one line. - credentials page: two-column grid layout instead of one long column. - find-fuzzy-dupes.py: add --json/--only-paths flags matching dedup-library.sh's convention, so it can plug into the same review queue. - dedup_review_service: add scan_fuzzy() and route confirm_and_apply() to the correct underlying script (dedup-library.sh vs find-fuzzy-dupes.py) per candidate's pass_name, since tag-based passes miss duplicates whose tags differ even when the audio is identical (e.g. a remix credited to different artists between two copies). - dedup page: add a "Scan for audio duplicates" trigger alongside the existing tag-based scan. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
51 lines
2.0 KiB
HTML
51 lines
2.0 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Dedup — alembic{% endblock %}
|
|
{% block content %}
|
|
<div class="page-header">
|
|
<div>
|
|
<h1>Dedup review</h1>
|
|
<p class="subtitle muted">Scheduled runs are dry-run only, every day. Nothing is deleted without a confirm below.</p>
|
|
</div>
|
|
<div class="actions">
|
|
<form method="post" action="/dedup/scan" class="inline">
|
|
<button type="submit" class="btn btn-primary" title="Tag-based: matches on artist/title/albumartist across 4 passes">Scan now</button>
|
|
</form>
|
|
<form method="post" action="/dedup/scan-fuzzy" class="inline">
|
|
<button type="submit" class="btn" title="Acoustic fingerprint match -- catches the same recording filed under different tags">Scan for audio duplicates</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<h2>Pending candidates</h2>
|
|
<form method="post" action="/dedup/confirm">
|
|
<div class="table-wrap scroll">
|
|
<table>
|
|
<thead>
|
|
<tr><th></th><th>Pass</th><th>Keep</th><th>Delete</th><th>Size</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for c in candidates %}
|
|
<tr>
|
|
<td><input type="checkbox" name="candidate_id" value="{{ c.id }}"></td>
|
|
<td><span class="badge badge-info">{{ c.pass_name }}</span></td>
|
|
<td class="muted mono truncate">{{ c.keep_path }}</td>
|
|
<td class="mono truncate">{{ c.delete_path }}</td>
|
|
<td class="muted">{{ (c.delete_size_bytes / 1024 / 1024) | round(1) if c.delete_size_bytes else '?' }} MB</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr class="empty-row"><td colspan="5">
|
|
<div class="empty-state">
|
|
<span class="sparkle" style="position:relative; display:inline-block; margin-bottom:0.5rem;"></span>
|
|
<p class="muted" style="margin:0;">No pending candidates. Run a scan.</p>
|
|
</div>
|
|
</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% if candidates %}
|
|
<button type="submit" class="btn btn-danger">Delete selected</button>
|
|
{% endif %}
|
|
</form>
|
|
{% endblock %}
|