Merge pull request #562 from arabcoders/dev
Some checks failed
native-build / build (amd64, ubuntu-latest) (push) Has been cancelled
native-build / build (amd64, windows-latest) (push) Has been cancelled
native-build / build (arm64, macos-latest) (push) Has been cancelled
native-build / build (arm64, ubuntu-latest) (push) Has been cancelled
native-build / build (arm64, windows-latest) (push) Has been cancelled
Some checks failed
native-build / build (amd64, ubuntu-latest) (push) Has been cancelled
native-build / build (amd64, windows-latest) (push) Has been cancelled
native-build / build (arm64, macos-latest) (push) Has been cancelled
native-build / build (arm64, ubuntu-latest) (push) Has been cancelled
native-build / build (arm64, windows-latest) (push) Has been cancelled
fix: update import path for fetch_info in HandleTask class. Closes #561
This commit is contained in:
commit
ee0942b37a
2 changed files with 3 additions and 5 deletions
|
|
@ -90,7 +90,7 @@ class HandleTask(TaskSchema):
|
||||||
indicating if the operation was successful, and a message.
|
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:
|
if not self.url:
|
||||||
return ({}, False, "No URL found in task parameters.")
|
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.
|
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:
|
if not self.url:
|
||||||
return (False, "No URL found in task parameters.")
|
return (False, "No URL found in task parameters.")
|
||||||
|
|
|
||||||
|
|
@ -395,9 +395,7 @@ class TestDownloadSpawnPickling:
|
||||||
def setup_method(self):
|
def setup_method(self):
|
||||||
EventBus._reset_singleton()
|
EventBus._reset_singleton()
|
||||||
|
|
||||||
def test_spawn_pickling_ignores_local_event_listener(
|
def test_spawn_pickling_ignores_local_event_listener(self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
|
||||||
self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path
|
|
||||||
) -> None:
|
|
||||||
class Cfg:
|
class Cfg:
|
||||||
debug = False
|
debug = False
|
||||||
ytdlp_debug = False
|
ytdlp_debug = False
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue