remove unnecessart print from fetch

This commit is contained in:
jorts 2025-08-31 14:32:45 +01:00
parent 5b5a86b339
commit 7faef1c9a9

View File

@ -9,8 +9,6 @@ from bs4 import BeautifulSoup
from urllib.parse import urlparse from urllib.parse import urlparse
def reader_mode(html_content: str) -> str: def reader_mode(html_content: str) -> str:
print("Getting reader mode for HTML", html_content)
doc = Document(html_content) doc = Document(html_content)
short_title = doc.short_title() or "" short_title = doc.short_title() or ""
title_html = f"<h1>{html.escape(short_title)}</h1>\n" if short_title else "" title_html = f"<h1>{html.escape(short_title)}</h1>\n" if short_title else ""