From e091a8f579a8d299249061b1d213690c9fe2edca Mon Sep 17 00:00:00 2001 From: x1ao4 Date: Tue, 9 Jul 2024 01:36:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=20Windows=20?= =?UTF-8?q?=E4=B8=8A=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AA=97=E5=8F=A3=E6=A0=87=E9=A2=98=E7=9A=84?= =?UTF-8?q?=20BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windows/desktop-skipper-for-plex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/desktop-skipper-for-plex.py b/windows/desktop-skipper-for-plex.py index c838507..d7ce651 100644 --- a/windows/desktop-skipper-for-plex.py +++ b/windows/desktop-skipper-for-plex.py @@ -50,8 +50,8 @@ def initialize_settings(): # 检查当前活动窗口是否为 Plex def is_plex_active(): try: - active_window_title = gw.getActiveWindow().title() - return active_window_title in ['Plex', 'Plex ', 'Plex Plex'] + active_window_title = gw.getActiveWindow().title + return active_window_title == 'Plex' except Exception: return False