actor merging!

This commit is contained in:
Lars Behrends
2025-11-06 18:45:20 +01:00
parent 0f0fb3b410
commit 5d86fcfda9
6 changed files with 38 additions and 44 deletions

View File

@@ -9,10 +9,10 @@
<p class="text-muted mb-0">View and manage actors, find and merge duplicates</p>
</div>
<div class="btn-group">
<a href="{{ path_for('admin.actors.index') }}" class="btn btn-outline-primary {% if not filters.duplicates %}active{% endif %}">
<a href="{{ path_for('admin.actors') }}" class="btn btn-outline-primary {% if not filters.duplicates %}active{% endif %}">
<i class="bi bi-people me-2"></i>All Actors
</a>
<a href="{{ path_for('admin.actors.index', {}, {'duplicates': 1}) }}" class="btn btn-outline-warning {% if filters.duplicates %}active{% endif %}">
<a href="{{ path_for('admin.actors', {}, {'duplicates': 1}) }}" class="btn btn-outline-warning {% if filters.duplicates %}active{% endif %}">
<i class="bi bi-exclamation-triangle me-2"></i>Duplicates
</a>
</div>
@@ -61,7 +61,7 @@
data-group="{{ group.normalized_name }}">
</div>
{% if actor.thumbnail_path %}
<img src="/images/{{ actor.thumbnail_path }}"
<img src="{{ actor.thumbnail_path }}"
alt="{{ actor.name }}"
class="rounded me-3"
style="width: 40px; height: 40px; object-fit: cover;">
@@ -268,7 +268,7 @@
<tr>
<td>
{% if actor.thumbnail_path %}
<img src="/images/{{ actor.thumbnail_path }}" alt="{{ actor.name }}" style="width: 50px; height: 50px; object-fit: cover; border-radius: 50%;">
<img src="{{ actor.thumbnail_path }}" alt="{{ actor.name }}" style="width: 50px; height: 50px; object-fit: cover; border-radius: 50%;">
{% else %}
<div class="bg-light d-flex align-items-center justify-content-center rounded-circle" style="width: 50px; height: 50px;">
<i class="bi bi-person text-muted"></i>
@@ -442,7 +442,7 @@ function autoMergeGroup(groupName) {
return;
}
fetch('{{ path_for("admin.actors.auto_merge") }}', {
fetch('{{ path_for("admin.actors.auto-merge") }}', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -484,7 +484,7 @@ function autoMergeAll() {
return;
}
fetch('{{ path_for("admin.actors.auto_merge") }}', {
fetch('{{ path_for("admin.actors.auto-merge") }}', {
method: 'POST',
headers: {
'Content-Type': 'application/json',