mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
[web] fix: search not working for some typed addresses
This commit is contained in:
@@ -253,7 +253,7 @@ class WebApplicationManager(SoftwareManager, SettingsController):
|
||||
|
||||
def _map_url(self, url: str) -> Tuple["BeautifulSoup", requests.Response]:
|
||||
url_res = self._request_url(url)
|
||||
if url_res:
|
||||
if url_res is not None and url_res.status_code != 404:
|
||||
return BeautifulSoup(url_res.text, 'lxml', parse_only=SoupStrainer('head')), url_res
|
||||
|
||||
def search(self, words: str, disk_loader: DiskCacheLoader, limit: int = -1, is_url: bool = False) -> SearchResult:
|
||||
|
||||
Reference in New Issue
Block a user