refactor(download): remove ProviderCore/download.py, move sanitize_filename to SYS.utils, replace callers to use API.HTTP.HTTPClient
This commit is contained in:
@@ -11,7 +11,7 @@ from urllib.parse import urlparse
|
||||
from API.HTTP import HTTPClient, _download_direct_file
|
||||
from API.alldebrid import AllDebridClient, parse_magnet_or_hash, is_torrent_file
|
||||
from ProviderCore.base import Provider, SearchResult
|
||||
from ProviderCore.download import sanitize_filename
|
||||
from SYS.utils import sanitize_filename
|
||||
from SYS.logger import log, debug
|
||||
from SYS.models import DownloadError
|
||||
|
||||
@@ -495,7 +495,7 @@ def adjust_output_dir_for_alldebrid(
|
||||
full_metadata: Optional[Dict[str, Any]],
|
||||
item: Any,
|
||||
) -> Path:
|
||||
from ProviderCore.download import sanitize_filename as _sf
|
||||
from SYS.utils import sanitize_filename as _sf
|
||||
|
||||
output_dir = base_output_dir
|
||||
md = full_metadata if isinstance(full_metadata, dict) else {}
|
||||
|
||||
Reference in New Issue
Block a user