From 12038f9477d7fc33dfbeda260f929670c3e9174c Mon Sep 17 00:00:00 2001 From: Tomuxs Date: Sat, 9 Aug 2025 04:31:37 +0200 Subject: [PATCH] Fixed view identification --- py34/dockid.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py34/dockid.py b/py34/dockid.py index d4e599c..5bbd54e 100644 --- a/py34/dockid.py +++ b/py34/dockid.py @@ -37,6 +37,6 @@ def is_toodeep(data: BeautifulSoup | str | bytes) -> bool: def is_view(data: BeautifulSoup | str | bytes) -> bool: doc = bs4(data) els = doc.find_all("img", attrs = {"id": "image"}) - if len(els) == 1: - return True - return False + if len(els) == 0: + return False + return True