From 237621c703eb7ebf5c72fec1703d2af121487e82 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 5 Sep 2026 08:14:49 +0800 Subject: [PATCH] fix(download): type subtitle content path lookup --- app/chain/download/subtitle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/chain/download/subtitle.py b/app/chain/download/subtitle.py index a52731d66..1376924da 100644 --- a/app/chain/download/subtitle.py +++ b/app/chain/download/subtitle.py @@ -32,6 +32,7 @@ from app.runtime.log import logger from app.schemas.file import FileItem as _SchemaFileItem from app.schemas.file import FileURI from app.schemas.system import TransferDirectoryConf as _SchemaTransferDirectoryConf +from app.schemas.transfer import DownloaderTorrent from app.schemas.types import ( MediaSource, ) @@ -66,7 +67,7 @@ def _append_download_classification_path( def _resolve_torrent_content_dir( - list_torrents: Callable[..., List[Any]], + list_torrents: Callable[..., Optional[List[DownloaderTorrent]]], *, download_hash: Optional[str], downloader: Optional[str],