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:
Kevin Tan
2025-12-08 17:20:45 +08:00
committed by GitHub
parent 6ebd50bebc
commit 81f7548579

View File

@@ -307,8 +307,8 @@ class _DownloaderBase(ServiceBase[TService, DownloaderConf]):
storage_path = Path(storage_path.strip()).as_posix()
download_path = Path(download_path.strip()).as_posix()
if dir.startswith(storage_path):
dir = dir.replace(storage_path, download_path, 1)
break
dir = dir.replace(storage_path, download_path, 1)
break
# 去掉存储协议前缀 if any, 下载器无法识别
for s in StorageSchema:
prefix = f"{s.value}:"