From cebc72875bebaa45eba9769e3354e537575fa56b Mon Sep 17 00:00:00 2001 From: arabcoders Date: Wed, 11 Feb 2026 18:44:32 +0300 Subject: [PATCH] fix: update import path for fetch_info in HandleTask class. Closes #561 --- app/features/tasks/definitions/results.py | 4 ++-- app/tests/test_download.py | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) 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 @@ class HandleTask(TaskSchema): 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 @@ class HandleTask(TaskSchema): 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