Show provider tags on watchlist

This commit is contained in:
Codex
2026-08-09 14:04:58 +02:00
parent 219ef1e059
commit 4eb5252d3a
6 changed files with 76 additions and 4 deletions
+10
View File
@@ -910,6 +910,15 @@ WATCHLIST_HTML = r"""<!doctype html>
container.appendChild(tag);
}
function providerLabel(provider) {
const labels = {
anikoto: "Anikoto",
anineko: "AniNeko",
pahe: "AnimePahe"
};
return labels[String(provider || "").toLowerCase()] || "Provider";
}
function categoryOptions(selected) {
return Object.entries(categoryLabels)
.map(([value, label]) => `<option value="${value}"${value === selected ? " selected" : ""}>${label}</option>`)
@@ -1364,6 +1373,7 @@ WATCHLIST_HTML = r"""<!doctype html>
: "Finished, but not marked as downloaded";
}
const statusRow = card.querySelector(".status-row");
appendStatusTag(statusRow, `Source: ${item.provider_label || providerLabel(item.provider)}`);
appendStatusTag(statusRow, item.category_label || categoryLabels[item.category] || "Watching");
appendStatusTag(statusRow, item.media_type_label || mediaTypeLabels[item.media_type] || "TV");
if (item.airing_status) {