mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-28 20:39:59 +00:00
Fix for #2363 (Handle empty response from lubimyczytac metadata provider)
This commit is contained in:
parent
d912c1c476
commit
a63af5882e
@ -113,6 +113,7 @@ class LubimyCzytac(Metadata):
|
|||||||
) -> Optional[List[MetaRecord]]:
|
) -> Optional[List[MetaRecord]]:
|
||||||
if self.active:
|
if self.active:
|
||||||
result = requests.get(self._prepare_query(title=query))
|
result = requests.get(self._prepare_query(title=query))
|
||||||
|
if result.text:
|
||||||
root = fromstring(result.text)
|
root = fromstring(result.text)
|
||||||
lc_parser = LubimyCzytacParser(root=root, metadata=self)
|
lc_parser = LubimyCzytacParser(root=root, metadata=self)
|
||||||
matches = lc_parser.parse_search_results()
|
matches = lc_parser.parse_search_results()
|
||||||
|
Loading…
Reference in New Issue
Block a user