Add queue page sizing and configurable watchlist refresh categories
This commit is contained in:
1 parent
5db5c875ee
commit
15f5f96513
10 files changed
+129
-14
No files matched your search
@@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## 0.54.18 - 2026-10-18
|
||||
|
||||
- Added a Queue page size selector beside Previous and Next with 10, 25, 50, and 100 items per page. The queue API now accepts up to 100 items per page.
|
||||
- Added per-watchlist bulk refresh selection in Config → Watchlist management. Manual and scheduled refreshes use the same saved selection; Watching and Planned are enabled by default. Custom lists are supported, and selecting none refreshes no entries.
|
||||
- Checked bundled anime providers against upstream; no updates were available.
|
||||
|
||||
## 0.54.17 - 2026-10-17
|
||||
|
||||
- Fixed Jellyfin handoff skipping completed Tokyo Revengers seasons whose AnimeSchedule metadata was missing because of `(Uncensored)` or `[Uncensored]` title labels. Metadata matching now ignores release labels while preserving season and part identity.
|
||||
|
||||
@@ -32,6 +32,8 @@ npm ci
|
||||
|
||||
Keep **`.kaizoku/`**, `backup/`, downloads, and Jellyfin library folders when updating. `.kaizoku/` contains configuration, watchlists, queue history, and other persistent state.
|
||||
|
||||
On the Queue page, choose 10, 25, 50, or 100 items per page beside the Previous and Next buttons. In **Config → Watchlist management**, use each list's **Refresh** checkbox to choose which lists are included in manual and scheduled bulk refreshes, then save the configuration. Watching and Planned are selected by default; custom lists can also be selected.
|
||||
|
||||
## Documentation
|
||||
|
||||
See the **[Kaizoku wiki](https://gitea.coreplay.eu/Dymas/kaizoku/wiki)** for detailed instructions:
|
||||
@@ -43,6 +45,6 @@ See the **[Kaizoku wiki](https://gitea.coreplay.eu/Dymas/kaizoku/wiki)** for det
|
||||
- [Data safety](https://gitea.coreplay.eu/Dymas/kaizoku/wiki/Data-Safety)
|
||||
- [Providers and upstream versions](https://gitea.coreplay.eu/Dymas/kaizoku/wiki/Providers)
|
||||
|
||||
Provider parsers are adapted from [TheYogMehta/extensions](https://github.com/TheYogMehta/extensions). Bundled versions are Anikoto **6.0.0**, AniNeko **4.0.0**, and AnimePahe **6.0.1**, checked on 2026-10-17. Anikoto retains Kaizoku search, dub detection, and stream patches; AnimePahe uses only the official `.pw`, `.com`, and `.org` mirrors with bounded search retries and bridge-compatible logging. Upstream hooks that require StrawVerse's browser or mapping database are inactive in Kaizoku.
|
||||
Provider parsers are adapted from [TheYogMehta/extensions](https://github.com/TheYogMehta/extensions). Bundled versions are Anikoto **6.0.0**, AniNeko **4.0.0**, and AnimePahe **6.0.1**, checked on 2026-10-18. Anikoto retains Kaizoku search, dub detection, and stream patches; AnimePahe uses only the official `.pw`, `.com`, and `.org` mirrors with bounded search retries and bridge-compatible logging. Upstream hooks that require StrawVerse's browser or mapping database are inactive in Kaizoku.
|
||||
|
||||
Live checks on that date returned Anikoto search results; AniNeko returned no matches and all three AnimePahe mirrors returned HTTP 403 from the test host. Current provider code does not guarantee source availability. Kaizoku does not host media.
|
||||
Live source checks on 2026-10-17 returned Anikoto search results; AniNeko returned no matches and all three AnimePahe mirrors returned HTTP 403 from the test host. Current provider code does not guarantee source availability. Kaizoku does not host media.
|
||||
@@ -2186,6 +2186,8 @@ class WatchlistStore:
|
||||
if normalized not in normalized_categories:
|
||||
normalized_categories.append(normalized)
|
||||
with self.lock, self._connect() as conn:
|
||||
if categories is not None and not normalized_categories:
|
||||
return []
|
||||
if normalized_categories:
|
||||
placeholders = ", ".join("?" for _ in normalized_categories)
|
||||
rows = conn.execute(
|
||||
@@ -2425,7 +2427,8 @@ class WatchlistStore:
|
||||
|
||||
def refresh_all(self):
|
||||
refreshed = []
|
||||
for show_id in self.all_show_ids(categories=("watching", "planned")):
|
||||
categories = (self.config_getter() or {}).get("watchlist_refresh_categories", ("watching", "planned"))
|
||||
for show_id in self.all_show_ids(categories=categories):
|
||||
item = self.refresh(show_id, include_thumbnail=False)
|
||||
if item is not None:
|
||||
refreshed.append(item)
|
||||
@@ -3303,7 +3306,12 @@ def manage_watchlist_category(action, payload):
|
||||
if action == "rename":
|
||||
return store.rename_category(payload.get("category"), payload.get("label"))
|
||||
if action == "delete":
|
||||
return store.delete_category(payload.get("category"))
|
||||
result = store.delete_category(payload.get("category"))
|
||||
current = get_config_snapshot()
|
||||
selected = current.get("watchlist_refresh_categories") or []
|
||||
if payload.get("category") in selected:
|
||||
save_runtime_config({"watchlist_refresh_categories": [key for key in selected if key != payload["category"]]})
|
||||
return result
|
||||
raise ValueError("Unknown watchlist action.")
|
||||
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ WATCHLIST_CATEGORY_LABELS = {
|
||||
"dropped": "Dropped",
|
||||
}
|
||||
WATCHLIST_CATEGORY_CHOICES = tuple(WATCHLIST_CATEGORY_LABELS.keys())
|
||||
DEFAULT_WATCHLIST_REFRESH_CATEGORIES = ["watching", "planned"]
|
||||
MAX_LOG_LINES = 240
|
||||
MAX_JSON_BODY_BYTES = 12 * 1024 * 1024
|
||||
WATCHLIST_REFRESH_REQUEST_TIMEOUT_SECONDS = 8
|
||||
@@ -309,6 +310,7 @@ DEFAULT_CONFIG = {
|
||||
"provider": "anikoto",
|
||||
"watchlist_auto_refresh_enabled": False,
|
||||
"watchlist_auto_refresh_minutes": WATCHLIST_AUTO_REFRESH_DEFAULT_MINUTES,
|
||||
"watchlist_refresh_categories": DEFAULT_WATCHLIST_REFRESH_CATEGORIES,
|
||||
"watchlist_backup_enabled": True,
|
||||
"watchlist_backup_minutes": 1440,
|
||||
"watchlist_backup_keep": 14,
|
||||
@@ -413,6 +415,7 @@ def normalize_config(data):
|
||||
download_methods = config.get("download_methods")
|
||||
auto_refresh_enabled = config.get("watchlist_auto_refresh_enabled")
|
||||
auto_refresh_minutes = config.get("watchlist_auto_refresh_minutes")
|
||||
refresh_categories = config.get("watchlist_refresh_categories")
|
||||
refresh_delay_seconds = config.get("watchlist_refresh_delay_seconds")
|
||||
auto_download_enabled = config.get("auto_download_enabled")
|
||||
auto_download_mode = str(config.get("auto_download_mode", "dub")).lower()
|
||||
@@ -485,6 +488,13 @@ def normalize_config(data):
|
||||
config["provider"] = provider if provider in PROVIDER_CHOICES else "anikoto"
|
||||
config["watchlist_auto_refresh_enabled"] = auto_refresh_enabled
|
||||
config["watchlist_auto_refresh_minutes"] = auto_refresh_minutes
|
||||
if not isinstance(refresh_categories, list):
|
||||
refresh_categories = DEFAULT_WATCHLIST_REFRESH_CATEGORIES
|
||||
config["watchlist_refresh_categories"] = list(dict.fromkeys(
|
||||
category for value in refresh_categories
|
||||
if (category := str(value or "").strip().lower()) in WATCHLIST_CATEGORY_CHOICES
|
||||
or re.fullmatch(r"custom-[0-9a-f]{12}", category)
|
||||
))
|
||||
backup_enabled = config.get("watchlist_backup_enabled")
|
||||
config["watchlist_backup_enabled"] = backup_enabled.strip().lower() in {"1", "true", "yes", "on"} if isinstance(backup_enabled, str) else bool(backup_enabled)
|
||||
for key, default, minimum, maximum in (("watchlist_backup_minutes", 1440, 1, 10080), ("watchlist_backup_keep", 14, 1, 365)):
|
||||
|
||||
+25
-1
@@ -170,6 +170,15 @@ CONFIG_HTML = r"""<!doctype html>
|
||||
max-width: 28ch;
|
||||
}
|
||||
.row > * { flex: 1; }
|
||||
.watchlist-refresh-option {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
width: auto;
|
||||
min-height: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.watchlist-refresh-option input { width: auto; flex: none; }
|
||||
.page-links {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
@@ -718,6 +727,7 @@ CONFIG_HTML = r"""<!doctype html>
|
||||
|
||||
<section class="settings settings-main" data-config-tab="watchlist">
|
||||
<div><h2>Watchlist management</h2><p class="muted">Create named watchlists. Watching, Planned, Finished and Dropped are fixed. Deleting a custom watchlist moves its entries to Planned.</p></div>
|
||||
<div class="field-hint">Choose which watchlists are included in scheduled refreshes and Refresh All. Watching and Planned are selected by default. Save settings to apply changes. Refreshing one show directly still works from any watchlist.</div>
|
||||
<div class="row"><input id="newWatchlistName" maxlength="60" placeholder="New watchlist name"><button id="addWatchlistBtn" type="button">Add watchlist</button></div>
|
||||
<div id="watchlistCategoryList" class="stack muted">Loading watchlists…</div>
|
||||
</section>
|
||||
@@ -798,6 +808,7 @@ CONFIG_HTML = r"""<!doctype html>
|
||||
download_methods: ["kaizoku"],
|
||||
watchlist_auto_refresh_enabled: false,
|
||||
watchlist_auto_refresh_minutes: 60,
|
||||
watchlist_refresh_categories: ["watching", "planned"],
|
||||
watchlist_backup_enabled: true,
|
||||
watchlist_backup_minutes: 1440,
|
||||
watchlist_backup_keep: 14,
|
||||
@@ -894,6 +905,9 @@ CONFIG_HTML = r"""<!doctype html>
|
||||
download_methods: ["kaizoku"],
|
||||
watchlist_auto_refresh_enabled: $("watchlistAutoRefreshEnabled").value === "true",
|
||||
watchlist_auto_refresh_minutes: $("watchlistAutoRefreshMinutes").value,
|
||||
watchlist_refresh_categories: document.querySelector(".watchlist-refresh-toggle")
|
||||
? [...document.querySelectorAll(".watchlist-refresh-toggle:checked")].map((input) => input.value)
|
||||
: (state.config.watchlist_refresh_categories || ["watching", "planned"]),
|
||||
watchlist_backup_enabled: $("watchlistBackupEnabled").value === "true",
|
||||
watchlist_backup_minutes: $("watchlistBackupMinutes").value,
|
||||
watchlist_backup_keep: $("watchlistBackupKeep").value,
|
||||
@@ -952,6 +966,7 @@ CONFIG_HTML = r"""<!doctype html>
|
||||
$("configProvider").value = data.provider || "anikoto";
|
||||
$("watchlistAutoRefreshEnabled").value = String(Boolean(data.watchlist_auto_refresh_enabled));
|
||||
$("watchlistAutoRefreshMinutes").value = data.watchlist_auto_refresh_minutes;
|
||||
state.config.watchlist_refresh_categories = data.watchlist_refresh_categories || ["watching", "planned"];
|
||||
$("watchlistBackupEnabled").value = String(Boolean(data.watchlist_backup_enabled));
|
||||
$("watchlistBackupMinutes").value = data.watchlist_backup_minutes;
|
||||
$("watchlistBackupKeep").value = data.watchlist_backup_keep;
|
||||
@@ -1116,6 +1131,15 @@ CONFIG_HTML = r"""<!doctype html>
|
||||
const row = document.createElement("div"); row.className = "toolbar";
|
||||
const label = document.createElement("strong"); label.textContent = entry.label;
|
||||
row.append(label);
|
||||
const refreshLabel = document.createElement("label"); refreshLabel.className = "watchlist-refresh-option";
|
||||
const refresh = document.createElement("input"); refresh.type = "checkbox"; refresh.className = "watchlist-refresh-toggle";
|
||||
refresh.value = entry.category;
|
||||
refresh.checked = (state.config.watchlist_refresh_categories || ["watching", "planned"]).includes(entry.category);
|
||||
refresh.addEventListener("change", () => {
|
||||
state.config.watchlist_refresh_categories = [...document.querySelectorAll(".watchlist-refresh-toggle:checked")].map((input) => input.value);
|
||||
});
|
||||
refreshLabel.append(refresh, document.createTextNode("Refresh"));
|
||||
row.append(refreshLabel);
|
||||
if (!entry.fixed) {
|
||||
const rename = document.createElement("button"); rename.type = "button"; rename.textContent = "Rename";
|
||||
rename.addEventListener("click", async () => {
|
||||
@@ -1126,7 +1150,7 @@ CONFIG_HTML = r"""<!doctype html>
|
||||
const remove = document.createElement("button"); remove.type = "button"; remove.textContent = "Delete";
|
||||
remove.addEventListener("click", async () => {
|
||||
if (!confirm(`Delete ${entry.label}? Its entries will move to Planned.`)) return;
|
||||
try { const result = await api("/api/config/watchlist/categories", {method:"POST", body:JSON.stringify({action:"delete", category:entry.category})}); setNotice(result.message); await loadWatchlistCategories(); } catch (error) { setNotice(error.message); }
|
||||
try { const result = await api("/api/config/watchlist/categories", {method:"POST", body:JSON.stringify({action:"delete", category:entry.category})}); state.config.watchlist_refresh_categories = (state.config.watchlist_refresh_categories || []).filter((key) => key !== entry.category); setNotice(result.message); await loadWatchlistCategories(); } catch (error) { setNotice(error.message); }
|
||||
});
|
||||
row.append(rename, remove);
|
||||
}
|
||||
|
||||
+1
-1
@@ -182,7 +182,7 @@ def normalize_queue_type(value):
|
||||
|
||||
def queue_list_payload(runtime, page=1, per_page=10, queue_type="all"):
|
||||
page = max(1, int(page or 1))
|
||||
per_page = min(50, max(1, int(per_page or 10)))
|
||||
per_page = min(100, max(1, int(per_page or 10)))
|
||||
queue_type = normalize_queue_type(queue_type)
|
||||
download_queue = runtime["download_queue"]
|
||||
jellyfin_jobs = runtime.get("watchlist_jellyfin_sync")
|
||||
|
||||
+3
-2
@@ -288,7 +288,8 @@ class WatchlistRefreshJobs:
|
||||
new_episode_items = []
|
||||
refresh_error_items = []
|
||||
try:
|
||||
show_ids = self.store.all_show_ids(categories=("watching", "planned"))
|
||||
categories = (self.config_getter() or {}).get("watchlist_refresh_categories", ("watching", "planned"))
|
||||
show_ids = self.store.all_show_ids(categories=categories)
|
||||
delay_seconds = self._refresh_delay_seconds()
|
||||
started_at = now_iso()
|
||||
with self.lock:
|
||||
@@ -1450,7 +1451,7 @@ class DownloadQueue:
|
||||
|
||||
def list(self, page=1, per_page=10):
|
||||
page = max(1, int(page or 1))
|
||||
per_page = min(50, max(1, int(per_page or 10)))
|
||||
per_page = min(100, max(1, int(per_page or 10)))
|
||||
offset = (page - 1) * per_page
|
||||
with self.lock, self._connect() as conn:
|
||||
total = conn.execute("SELECT COUNT(*) AS count FROM jobs").fetchone()["count"]
|
||||
|
||||
+17
-4
@@ -179,6 +179,8 @@ QUEUE_HTML = r"""<!doctype html>
|
||||
border-radius: 16px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
.queue-pager-controls > * { flex: 0 0 auto; }
|
||||
.queue-pager-controls select { width: auto; min-width: 78px; }
|
||||
.queue-tab {
|
||||
border: 0;
|
||||
min-height: 38px;
|
||||
@@ -427,6 +429,7 @@ QUEUE_HTML = r"""<!doctype html>
|
||||
<script>
|
||||
const state = {
|
||||
queuePage: 1,
|
||||
queuePerPage: 10,
|
||||
queuePages: 1,
|
||||
queueTotal: 0,
|
||||
queueRequestId: 0,
|
||||
@@ -653,15 +656,25 @@ QUEUE_HTML = r"""<!doctype html>
|
||||
|
||||
function renderQueuePager() {
|
||||
const el = $("queuePager");
|
||||
const start = state.queueTotal ? ((state.queuePage - 1) * 10) + 1 : 0;
|
||||
const end = Math.min(state.queuePage * 10, state.queueTotal);
|
||||
const start = state.queueTotal ? ((state.queuePage - 1) * state.queuePerPage) + 1 : 0;
|
||||
const end = Math.min(state.queuePage * state.queuePerPage, state.queueTotal);
|
||||
el.innerHTML = `
|
||||
<span class="muted"></span>
|
||||
<div class="row" style="flex:0 0 auto"></div>
|
||||
<div class="row queue-pager-controls" style="flex:0 0 auto">
|
||||
<label for="queuePerPage">Items per page</label>
|
||||
<select id="queuePerPage" aria-label="Items per page"><option>10</option><option>25</option><option>50</option><option>100</option></select>
|
||||
</div>
|
||||
`;
|
||||
el.querySelector(".muted").textContent =
|
||||
`${start}-${end} of ${state.queueTotal} · page ${state.queuePage} of ${state.queuePages}`;
|
||||
const controls = el.querySelector(".row");
|
||||
const pageSize = $("queuePerPage");
|
||||
pageSize.value = String(state.queuePerPage);
|
||||
pageSize.addEventListener("change", () => {
|
||||
state.queuePerPage = Number(pageSize.value);
|
||||
state.queuePage = 1;
|
||||
loadQueue(1).catch((error) => setNotice(error.message));
|
||||
});
|
||||
const prev = actionButton("Previous", () => {
|
||||
if (state.queuePage > 1) loadQueue(state.queuePage - 1);
|
||||
});
|
||||
@@ -694,7 +707,7 @@ QUEUE_HTML = r"""<!doctype html>
|
||||
|
||||
async function loadQueue(page = state.queuePage || 1) {
|
||||
const requestId = ++state.queueRequestId;
|
||||
const data = await api(`/api/queue?page=${page}&per_page=10&type=${state.activeQueueType}`);
|
||||
const data = await api(`/api/queue?page=${page}&per_page=${state.queuePerPage}&type=${state.activeQueueType}`);
|
||||
if (requestId !== state.queueRequestId) return data;
|
||||
if (data.page > data.pages && data.pages > 0) return loadQueue(data.pages);
|
||||
renderQueue(data);
|
||||
|
||||
+52
-1
@@ -702,6 +702,14 @@ class QueueApiTests(unittest.TestCase):
|
||||
self.assertEqual([job["id"] for job in jellyfin_handler.json_payload["jobs"]], [handoff["id"]])
|
||||
self.assertEqual(jellyfin_handler.json_payload["queue_type"], "jellyfin")
|
||||
|
||||
def test_queue_route_accepts_100_items_per_page(self):
|
||||
handler = DummyHandler("/api/queue?page=1&per_page=100&type=downloads")
|
||||
|
||||
APP.Handler.do_GET(handler)
|
||||
|
||||
self.assertEqual(handler.json_status, HTTPStatus.OK)
|
||||
self.assertEqual(handler.json_payload["per_page"], 100)
|
||||
|
||||
def test_queue_item_get_route_returns_jellyfin_handoff_job(self):
|
||||
created = APP.WATCHLIST_JELLYFIN_SYNC.start(
|
||||
config={
|
||||
@@ -1559,12 +1567,15 @@ class WatchlistRefreshAllTests(unittest.TestCase):
|
||||
def test_refresh_all_iterates_only_watching_and_planned_show_ids(self):
|
||||
store = object.__new__(APP.WatchlistStore)
|
||||
calls = []
|
||||
store.all_show_ids = lambda categories=None: ["show-a", "show-b"]
|
||||
selected = []
|
||||
store.config_getter = lambda: {"watchlist_refresh_categories": ["watching", "planned"]}
|
||||
store.all_show_ids = lambda categories=None: selected.append(categories) or ["show-a", "show-b"]
|
||||
store.refresh = lambda show_id, include_thumbnail=True: calls.append((show_id, include_thumbnail)) or {"show_id": show_id}
|
||||
|
||||
result = APP.WatchlistStore.refresh_all(store)
|
||||
|
||||
self.assertEqual(calls, [("show-a", False), ("show-b", False)])
|
||||
self.assertEqual(selected, [["watching", "planned"]])
|
||||
self.assertEqual(result["count"], 2)
|
||||
self.assertEqual([item["show_id"] for item in result["items"]], ["show-a", "show-b"])
|
||||
|
||||
@@ -1611,6 +1622,20 @@ class WatchlistRefreshAllTests(unittest.TestCase):
|
||||
filtered = APP.WATCHLIST.all_show_ids(categories=("watching", "planned"))
|
||||
|
||||
self.assertEqual(filtered, ["show-p", "show-w"])
|
||||
self.assertEqual(APP.WATCHLIST.all_show_ids(categories=[]), [])
|
||||
|
||||
def test_refresh_all_uses_custom_category_selection(self):
|
||||
store = object.__new__(APP.WatchlistStore)
|
||||
selected = []
|
||||
store.config_getter = lambda: {"watchlist_refresh_categories": ["finished", "custom-012345abcdef"]}
|
||||
store.all_show_ids = lambda categories=None: selected.append(categories) or []
|
||||
store.refresh = mock.Mock()
|
||||
|
||||
result = APP.WatchlistStore.refresh_all(store)
|
||||
|
||||
self.assertEqual(selected, [["finished", "custom-012345abcdef"]])
|
||||
self.assertEqual(result["count"], 0)
|
||||
store.refresh.assert_not_called()
|
||||
|
||||
|
||||
class WatchlistRefreshJobTests(unittest.TestCase):
|
||||
@@ -1644,6 +1669,26 @@ class WatchlistRefreshJobTests(unittest.TestCase):
|
||||
self.assertEqual(status["errors"], 1)
|
||||
self.assertFalse(service.store.last_include_thumbnail)
|
||||
|
||||
def test_manual_and_scheduled_jobs_use_configured_categories(self):
|
||||
class FakeStore:
|
||||
def __init__(self):
|
||||
self.selected = []
|
||||
|
||||
def all_show_ids(self, categories=None):
|
||||
self.selected.append(categories)
|
||||
return []
|
||||
|
||||
store = FakeStore()
|
||||
service = APP.WatchlistRefreshJobs(
|
||||
store, config_getter=lambda: {"watchlist_refresh_categories": ["finished"]}, start_worker=False
|
||||
)
|
||||
for source in ("manual", "scheduled"):
|
||||
started = service.start(source=source)
|
||||
service._run_job(service._next_pending())
|
||||
self.assertEqual(service.status()["job"]["total"], 0)
|
||||
|
||||
self.assertEqual(store.selected, [["finished"], ["finished"]])
|
||||
|
||||
def test_refresh_job_skips_removed_items_without_thumbnail_warmup(self):
|
||||
calls = []
|
||||
|
||||
@@ -3704,6 +3749,7 @@ class ConfigSnapshotTests(unittest.TestCase):
|
||||
self.assertFalse(config["watchlist_auto_refresh_enabled"])
|
||||
self.assertEqual(config["watchlist_auto_refresh_minutes"], 60)
|
||||
self.assertEqual(config["watchlist_refresh_delay_seconds"], 5)
|
||||
self.assertEqual(config["watchlist_refresh_categories"], ["watching", "planned"])
|
||||
self.assertEqual(config["download_methods"], ["kaizoku"])
|
||||
self.assertFalse(config["auto_download_enabled"])
|
||||
self.assertEqual(config["auto_download_mode"], "dub")
|
||||
@@ -3718,6 +3764,11 @@ class ConfigSnapshotTests(unittest.TestCase):
|
||||
self.assertEqual(config["discord_webhook_url"], "")
|
||||
self.assertEqual(config["discord_webhook_events"], [])
|
||||
|
||||
def test_normalize_config_filters_refresh_categories_and_keeps_empty_selection(self):
|
||||
config = APP.normalize_config({"watchlist_refresh_categories": ["FINISHED", "custom-012345abcdef", "finished", "unknown"]})
|
||||
self.assertEqual(config["watchlist_refresh_categories"], ["finished", "custom-012345abcdef"])
|
||||
self.assertEqual(APP.normalize_config({"watchlist_refresh_categories": []})["watchlist_refresh_categories"], [])
|
||||
|
||||
def test_normalize_config_parses_watchlist_schedule_fields(self):
|
||||
config = APP.normalize_config(
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user