We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15a2c83 commit bb5596fCopy full SHA for bb5596f
1 file changed
app/modules/alist2strm/alist2strm.py
@@ -244,15 +244,9 @@ async def __file_processer(self, path: AlistPath) -> None:
244
245
logger.debug(f"__file_processer: 初始 content = {content}")
246
247
- # 如果 URL 为空,提供 fallback(适用于所有文件类型)
248
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}")
+ logger.warning(f"文件 {path.full_path} 的内容为空,跳过处理")
+ return
256
257
await to_thread(local_path.parent.mkdir, parents=True, exist_ok=True)
258
0 commit comments