feat: complete cache coverage for musify
This commit is contained in:
parent
9a718af1c9
commit
d7348b9111
@ -148,6 +148,9 @@ class Cache:
|
||||
return None
|
||||
|
||||
# check if it is outdated
|
||||
if f"{self.module}_{name}" not in self._id_to_attribute:
|
||||
path.unlink()
|
||||
return
|
||||
existing_attribute: CacheAttribute = self._id_to_attribute[f"{self.module}_{name}"]
|
||||
if not existing_attribute.is_valid:
|
||||
return
|
||||
|
@ -376,7 +376,7 @@ class Musify(Page):
|
||||
def general_search(self, search_query: str) -> List[DatabaseObject]:
|
||||
search_results = []
|
||||
|
||||
r = self.connection.get(f"https://musify.club/search?searchText={search_query}")
|
||||
r = self.connection.get(f"https://musify.club/search?searchText={search_query}", name="search_" + search_query)
|
||||
if r is None:
|
||||
return []
|
||||
search_soup: BeautifulSoup = self.get_soup_from_response(r)
|
||||
|
Loading…
Reference in New Issue
Block a user