Fixed view identification

This commit is contained in:
2025-08-09 04:31:37 +02:00
parent dddb0e9583
commit 12038f9477

View File

@ -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