1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-18 14:10:30 +00:00

Update lubimycztac metadata provider (fixes #3090)

This commit is contained in:
Ozzie Isaacs 2024-07-05 19:15:59 +02:00
parent ab2620a265
commit bbc3219d31

View File

@ -285,11 +285,13 @@ class LubimyCzytacParser:
def _parse_tags(self) -> List[str]: def _parse_tags(self) -> List[str]:
tags = self._parse_xpath_node(xpath=LubimyCzytac.TAGS, take_first=False) tags = self._parse_xpath_node(xpath=LubimyCzytac.TAGS, take_first=False)
return [ if tags:
strip_accents(w.replace(", itd.", " itd.")) return [
for w in tags strip_accents(w.replace(", itd.", " itd."))
if isinstance(w, str) for w in tags
] if isinstance(w, str)
]
return None
def _parse_from_summary(self, attribute_name: str) -> Optional[str]: def _parse_from_summary(self, attribute_name: str) -> Optional[str]:
value = None value = None