From 6881ef42ec0736621c38439b10fd447e9fb003fc Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 1 Sep 2026 20:58:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(wallpaper):=20=E4=BF=AE=E6=AD=A3=E7=BB=BF?= =?UTF-8?q?=E8=81=94=E5=AA=92=E4=BD=93=E7=B1=BB=E5=9E=8B=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/ugreen/ugreen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/modules/ugreen/ugreen.py b/app/modules/ugreen/ugreen.py index d09b644b4..c33653d40 100644 --- a/app/modules/ugreen/ugreen.py +++ b/app/modules/ugreen/ugreen.py @@ -1085,7 +1085,8 @@ class Ugreen: continue video_info = item.get("video_info") if isinstance(item.get("video_info"), dict) else {} - if video_info.get("type") not in (1, 2): + video_type = video_info.get("type") if isinstance(video_info, dict) else None + if video_type != 1 and video_type != 2: continue library_id = str(video_info.get("media_lib_set_id") or "") if self.__is_library_blocked(library_id):