diff --git a/app/utils/search.py b/app/utils/search.py index ed3b0f6..0f2d7fe 100644 --- a/app/utils/search.py +++ b/app/utils/search.py @@ -147,12 +147,13 @@ class Search: # force mobile search when view image is true and # the request is not already made by a mobile - view_image = ('tbm=isch' in full_query - and self.config.view_image - and not g.user_request.mobile) + # FIXME: Broken since the user agent changes as of 16 Jan 2025 + # view_image = ('tbm=isch' in full_query + # and self.config.view_image + # and not g.user_request.mobile) get_body = g.user_request.send(query=full_query, - force_mobile=view_image, + force_mobile=self.config.view_image, user_agent=self.user_agent) # Produce cleanable html soup from response @@ -160,8 +161,9 @@ class Search: html_soup = bsoup(get_body_safed, 'html.parser') # Replace current soup if view_image is active - if view_image: - html_soup = content_filter.view_image(html_soup) + # FIXME: Broken since the user agent changes as of 16 Jan 2025 + # if view_image: + # html_soup = content_filter.view_image(html_soup) # Indicate whether or not a Tor connection is active if g.user_request.tor_valid: