From 510c20dc7063858d40d9f39a25e3dd67e717589a Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 16 Nov 2024 21:49:54 +0800 Subject: [PATCH] fix --- app/modules/filemanager/storages/u115.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/app/modules/filemanager/storages/u115.py b/app/modules/filemanager/storages/u115.py index 43c628d0..1f181252 100644 --- a/app/modules/filemanager/storages/u115.py +++ b/app/modules/filemanager/storages/u115.py @@ -1,5 +1,4 @@ import base64 -import subprocess from pathlib import Path from typing import Optional, Tuple, List @@ -33,19 +32,6 @@ class U115Pan(StorageBase, metaclass=Singleton): cloud: Optional[Cloud] = None _session: QrcodeSession = None - # 是否有aria2c - _has_aria2c: bool = False - - def __init__(self): - super().__init__() - try: - subprocess.run(['aria2c', '-h'], capture_output=True) - self._has_aria2c = True - logger.debug('发现 aria2c, 将使用 aria2c 下载文件') - except FileNotFoundError: - logger.debug('未发现 aria2c') - self._has_aria2c = False - def __init_cloud(self) -> bool: """ 初始化Cloud