1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-07 04:55:10 +01:00

Be more explicit about some dependencies

This commit is contained in:
2025-09-21 21:24:50 +02:00
parent 21306f030e
commit 5f2e2c37fa
3 changed files with 15 additions and 2 deletions

View File

@@ -1,8 +1,9 @@
"""Bookmark helper functions, like content scrapers, favicon extractor, updater functions."""
import logging
from collections.abc import Sequence
from datetime import UTC, datetime
from typing import Annotated, Sequence
from typing import Annotated
from urllib.parse import urlparse, urlunparse
import bs4
@@ -29,7 +30,7 @@ def get_favicon(html_content: str, root_url: str) -> str:
# TODO: save the preferred image to file and return
async def set_information_from_source(logger, bookmark: Bookmark, request: Request) -> Bookmark:
async def set_information_from_source(bookmark: Bookmark, request: Request) -> Bookmark:
"""Request the title by requesting the source url."""
logger.info('Extracting information from url %s', bookmark.url)
try: