refactor(api): put the job and worker process channels in job_channel

This commit is contained in:
imSp4rky
2026-11-29 14:33:21 -07:00
parent de2ffcb9bd
commit ccc327e2c3
12 changed files with 665 additions and 413 deletions
@@ -17,6 +17,7 @@ import pytest
from unshackle.commands.dl import dl
from unshackle.core import binaries
from unshackle.core.api.job_channel import JobProgress, apply_progress
from unshackle.core.constants import DOWNLOAD_LICENCE_ONLY
from unshackle.core.dl_options import DEFAULT_DOWNLOAD_PARAMS
from unshackle.core.title_source import TitleSource
@@ -195,6 +196,10 @@ def test_skip_missing_skips_the_title_and_reports_it(
assert ids == {"video": ["v"], "audio": ["a"], "subs": ["s"]}
assert "Skipping Show S01E01: Required audio language(s) not found: ko" in caplog.text
assert {"skipped_titles": [{"title": "Show S01E01", "reason": "Required audio language(s) not found: ko"}]} in sink
state = JobProgress()
for event in sink:
apply_progress(state, event)
assert state.title == "Show"
def test_skip_missing_skips_a_filter_miss_and_continues(