chore: Log found files for extractors to debug logger

This commit is contained in:
Marty Oehme 2025-09-11 21:37:18 +02:00
parent 729b6aa62a
commit b2ce6023a2
Signed by: Marty
GPG key ID: 4E535BC19C61886E
3 changed files with 14 additions and 7 deletions

View file

@ -20,11 +20,13 @@ class PocketBookExtractor:
return False
html = BeautifulSoup(content, features="xml")
return bool(
html.find(
"meta", {"name": "generator", "content": "PocketBook Bookmarks Export"}
)
)
if not html.find(
"meta", {"name": "generator", "content": "PocketBook Bookmarks Export"}
):
return False
logger.debug(f"Found processable annotation file: {filename}")
return True
def run(self, filename: Path) -> list[Annotation]:
"""Extract annotations from pocketbook html file.