fix: update import path for fetch_info in HandleTask class. Closes #561

This commit is contained in:
arabcoders 2026-02-11 18:44:32 +03:00
parent 5844290d74
commit cebc72875b
2 changed files with 3 additions and 5 deletions

View file

@ -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.")

View file

@ -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