Skip to content

Commit bb5596f

Browse files
committed
update(Alist2Strm): 移除 fallback 功能
1 parent 15a2c83 commit bb5596f

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

app/modules/alist2strm/alist2strm.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,9 @@ async def __file_processer(self, path: AlistPath) -> None:
244244

245245
logger.debug(f"__file_processer: 初始 content = {content}")
246246

247-
# 如果 URL 为空,提供 fallback(适用于所有文件类型)
248247
if not content:
249-
if self.mode == "AlistURL":
250-
content = f"{self.client.url}/d{path.full_path}"
251-
elif self.mode == "RawURL":
252-
content = path.download_url or f"{self.client.url}/d{path.full_path}"
253-
elif self.mode == "AlistPath":
254-
content = path.full_path
255-
logger.debug(f"__file_processer: fallback content = {content}")
248+
logger.warning(f"文件 {path.full_path} 的内容为空,跳过处理")
249+
return
256250

257251
await to_thread(local_path.parent.mkdir, parents=True, exist_ok=True)
258252

0 commit comments

Comments
 (0)