Skip to content

Commit ee0942b

Browse files
authored
Merge pull request #562 from arabcoders/dev
fix: update import path for fetch_info in HandleTask class. Closes #561
2 parents 1cc6172 + cebc728 commit ee0942b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/features/tasks/definitions/results.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async def fetch_metadata(self, full: bool = False) -> tuple[dict[str, Any] | Non
9090
indicating if the operation was successful, and a message.
9191
9292
"""
93-
from app.features.ytdlp.ytdlp import fetch_info
93+
from app.features.ytdlp.extractor import fetch_info
9494

9595
if not self.url:
9696
return ({}, False, "No URL found in task parameters.")
@@ -122,7 +122,7 @@ async def _mark_logic(self) -> tuple[bool, str] | dict[str, Any]:
122122
tuple[bool, str] | dict[str, Any]: Either an error tuple or a dict with 'file' and 'items' keys.
123123
124124
"""
125-
from app.features.ytdlp.ytdlp import fetch_info
125+
from app.features.ytdlp.extractor import fetch_info
126126

127127
if not self.url:
128128
return (False, "No URL found in task parameters.")

app/tests/test_download.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,7 @@ class TestDownloadSpawnPickling:
395395
def setup_method(self):
396396
EventBus._reset_singleton()
397397

398-
def test_spawn_pickling_ignores_local_event_listener(
399-
self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path
400-
) -> None:
398+
def test_spawn_pickling_ignores_local_event_listener(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
401399
class Cfg:
402400
debug = False
403401
ytdlp_debug = False

0 commit comments

Comments
 (0)