Improve anikoto backup search fallback

- prefer the canonical queued title for anikoto-cli backup searches instead of relying only on the ani-cli source query
- retry backup searches with alternate title variants when AniList misses the first lookup
- bump the project version to 0.46.4 and document the fix in the changelog and README
This commit is contained in:
Dymas
2026-07-09 13:39:44 +02:00
parent 897e12e019
commit 34da6b26c5
6 changed files with 111 additions and 78 deletions
+2 -1
View File
@@ -679,7 +679,7 @@ class DownloadQueueWorkerFailureTests(unittest.TestCase):
},
start_worker=False,
)
job = queue.add({"query": "Queue Show", "title": "Queue Show", "season": "1", "episodes": "1"})
job = queue.add({"query": "Queue Source", "title": "Queue Show", "season": "1", "episodes": "1"})
class FailedProc:
pid = 1111
@@ -721,6 +721,7 @@ class DownloadQueueWorkerFailureTests(unittest.TestCase):
self.assertIn("--exact", popen_calls[1]["env"]["FZF_DEFAULT_OPTS"])
self.assertIn("--select-1", popen_calls[1]["env"]["FZF_DEFAULT_OPTS"])
self.assertIn("Queue Show", popen_calls[1]["env"]["FZF_DEFAULT_OPTS"])
self.assertEqual(popen_calls[1]["command"][-1], "Queue Show")
def test_run_job_marks_post_start_exception_failed_without_killing_worker_state(self):
queue = APP.DownloadQueue(lambda: {"mode": "sub", "quality": "best", "download_dir": "/tmp/example"}, start_worker=False)