diff --git a/app/features/tasks/definitions/results.py b/app/features/tasks/definitions/results.py index 66037d2d..e4052311 100644 --- a/app/features/tasks/definitions/results.py +++ b/app/features/tasks/definitions/results.py @@ -90,7 +90,7 @@ async def fetch_metadata(self, full: bool = False) -> tuple[dict[str, Any] | Non indicating if the operation was successful, and a message. """ - from app.features.ytdlp.ytdlp import fetch_info + from app.features.ytdlp.extractor import fetch_info if not self.url: return ({}, False, "No URL found in task parameters.") @@ -122,7 +122,7 @@ async def _mark_logic(self) -> tuple[bool, str] | dict[str, Any]: tuple[bool, str] | dict[str, Any]: Either an error tuple or a dict with 'file' and 'items' keys. """ - from app.features.ytdlp.ytdlp import fetch_info + from app.features.ytdlp.extractor import fetch_info if not self.url: return (False, "No URL found in task parameters.") diff --git a/app/tests/test_download.py b/app/tests/test_download.py index 88852ec8..f32a7d8a 100644 --- a/app/tests/test_download.py +++ b/app/tests/test_download.py @@ -395,9 +395,7 @@ class TestDownloadSpawnPickling: def setup_method(self): EventBus._reset_singleton() - def test_spawn_pickling_ignores_local_event_listener( - self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path - ) -> None: + def test_spawn_pickling_ignores_local_event_listener(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None: class Cfg: debug = False ytdlp_debug = False