From 749d1b7039db9ba22f221b65aad7e0a3ae0b8fd4 Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Wed, 27 Nov 2024 16:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20storage=5Fi?= =?UTF-8?q?d=5Fto=5Fpath()=20=E6=9C=AA=E5=8C=B9=E9=85=8D=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=80=BC=20#43?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在不支持的驱动情况下,确保返回值为 (False, (None, None)) - 提高代码的健壮性和可读性 --- plugins/alist_strm_gen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/alist_strm_gen.py b/plugins/alist_strm_gen.py index a7ef7f9..2f87b67 100644 --- a/plugins/alist_strm_gen.py +++ b/plugins/alist_strm_gen.py @@ -94,6 +94,7 @@ class Alist_strm_gen: return True, (storage_mount_path, quark_root_dir) else: print(f"Alist刷新: 不支持[{storage_info['driver']}]驱动 ❌") + return False, (None, None) def get_storage_info(self, storage_id): url = f"{self.url}/api/admin/storage/get"