feat: re-export odesli symbols through server/mf.py
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,14 @@ is_url = _mod.is_url
|
|||||||
probe_url = _mod.probe_url
|
probe_url = _mod.probe_url
|
||||||
download_hits = _mod.download_hits
|
download_hits = _mod.download_hits
|
||||||
download_single = _mod.download_single
|
download_single = _mod.download_single
|
||||||
|
_is_direct_url = _mod._is_direct_url
|
||||||
|
odesli_resolve = _mod.odesli_resolve
|
||||||
|
resolve_link_hits = _mod.resolve_link_hits
|
||||||
|
handle_link = _mod.handle_link
|
||||||
|
OdesliError = _mod.OdesliError
|
||||||
|
|
||||||
__all__ = ["Hit", "build_combined_hits", "pick", "act_youtube",
|
__all__ = ["Hit", "build_combined_hits", "pick", "act_youtube",
|
||||||
"act_lidarr_album", "act_lidarr_artist", "QUALITY_CHOICES",
|
"act_lidarr_album", "act_lidarr_artist", "QUALITY_CHOICES",
|
||||||
"is_url", "probe_url", "download_hits", "download_single"]
|
"is_url", "probe_url", "download_hits", "download_single",
|
||||||
|
"_is_direct_url", "odesli_resolve", "resolve_link_hits",
|
||||||
|
"handle_link", "OdesliError"]
|
||||||
|
|||||||
@@ -6,3 +6,11 @@ def test_url_helpers_reexported():
|
|||||||
assert callable(smf.probe_url)
|
assert callable(smf.probe_url)
|
||||||
assert callable(smf.download_hits)
|
assert callable(smf.download_hits)
|
||||||
assert callable(smf.download_single)
|
assert callable(smf.download_single)
|
||||||
|
|
||||||
|
|
||||||
|
def test_odesli_symbols_reexported():
|
||||||
|
import server.mf as smf
|
||||||
|
assert callable(smf._is_direct_url)
|
||||||
|
assert callable(smf.odesli_resolve)
|
||||||
|
assert callable(smf.resolve_link_hits)
|
||||||
|
assert callable(smf.handle_link)
|
||||||
|
|||||||
Reference in New Issue
Block a user