Fixed view identification
This commit is contained in:
@ -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
|
||||
if len(els) == 0:
|
||||
return False
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user