diff --git a/server/mf.py b/server/mf.py index be9b11d..c688e3f 100644 --- a/server/mf.py +++ b/server/mf.py @@ -28,7 +28,14 @@ is_url = _mod.is_url probe_url = _mod.probe_url download_hits = _mod.download_hits 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", "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"] diff --git a/tests/test_mf_url_exports.py b/tests/test_mf_url_exports.py index 8891769..9b87775 100644 --- a/tests/test_mf_url_exports.py +++ b/tests/test_mf_url_exports.py @@ -6,3 +6,11 @@ def test_url_helpers_reexported(): assert callable(smf.probe_url) assert callable(smf.download_hits) 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)