MCPcopy
hub / github.com/facefusion/facefusion / resolve_download_url

Function resolve_download_url

facefusion/download.py:157–165  ·  view source on GitHub ↗
(base_name : str, file_name : str)

Source from the content-addressed store, hash-verified

155
156
157def resolve_download_url(base_name : str, file_name : str) -> Optional[str]:
158 download_providers = state_manager.get_item('download_providers')
159
160 for download_provider in download_providers:
161 download_url = resolve_download_url_by_provider(download_provider, base_name, file_name)
162 if download_url:
163 return download_url
164
165 return None
166
167
168def resolve_download_url_by_provider(download_provider : DownloadProvider, base_name : str, file_name : str) -> Optional[str]:

Callers 15

create_static_model_setFunction · 0.90
create_static_model_setFunction · 0.90
create_static_model_setFunction · 0.90
pre_checkFunction · 0.90
create_static_model_setFunction · 0.90
create_static_model_setFunction · 0.90
create_static_model_setFunction · 0.90
create_static_model_setFunction · 0.90
create_static_model_setFunction · 0.90
create_static_model_setFunction · 0.90
create_static_model_setFunction · 0.90
create_static_model_setFunction · 0.90

Calls 1

Tested by

no test coverage detected