mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
Update app/modules/__init__.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent
6ebd50bebc
commit
81f7548579
@@ -307,8 +307,8 @@ class _DownloaderBase(ServiceBase[TService, DownloaderConf]):
|
|||||||
storage_path = Path(storage_path.strip()).as_posix()
|
storage_path = Path(storage_path.strip()).as_posix()
|
||||||
download_path = Path(download_path.strip()).as_posix()
|
download_path = Path(download_path.strip()).as_posix()
|
||||||
if dir.startswith(storage_path):
|
if dir.startswith(storage_path):
|
||||||
dir = dir.replace(storage_path, download_path, 1)
|
dir = dir.replace(storage_path, download_path, 1)
|
||||||
break
|
break
|
||||||
# 去掉存储协议前缀 if any, 下载器无法识别
|
# 去掉存储协议前缀 if any, 下载器无法识别
|
||||||
for s in StorageSchema:
|
for s in StorageSchema:
|
||||||
prefix = f"{s.value}:"
|
prefix = f"{s.value}:"
|
||||||
|
|||||||
Reference in New Issue
Block a user