This commit is contained in:
2026-02-11 18:16:07 -08:00
parent cc715e1fef
commit 1d0de1118b
27 changed files with 1167 additions and 1075 deletions

View File

@@ -17,7 +17,8 @@ from API.Tidal import (
stringify,
)
from ProviderCore.base import Provider, SearchResult, parse_inline_query_arguments
from cmdlet._shared import get_field
from SYS.field_access import get_field
from Provider.tidal_manifest import resolve_tidal_manifest_path
from SYS import pipeline as pipeline_context
from SYS.logger import debug, log
@@ -1178,11 +1179,6 @@ class HIFI(Provider):
except Exception:
pass
try:
from cmdlet._shared import resolve_tidal_manifest_path
except Exception:
return None
resolved = resolve_tidal_manifest_path({"full_metadata": md, "path": raw_path, "title": getattr(result, "title", "")})
if not resolved:
return None
@@ -1223,9 +1219,11 @@ class HIFI(Provider):
# As a fallback, try downloading the URL directly if it looks like a file.
try:
import httpx
from API.httpx_shared import get_shared_httpx_client
resp = httpx.get(resolved_text, timeout=float(getattr(self, "api_timeout", 10.0)))
timeout_val = float(getattr(self, "api_timeout", 10.0))
client = get_shared_httpx_client(timeout=timeout_val)
resp = client.get(resolved_text, timeout=timeout_val)
resp.raise_for_status()
content = resp.content
direct_path = output_dir / f"{stem}.bin"