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:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user