fix: decode HTML entities in titles; add note timestamps; reorder layout — title first, AI digest below

This commit is contained in:
Gan, Jimmy
2026-06-24 02:18:18 +08:00
parent 5bfd72ab3d
commit 1c4f9dc713
2 changed files with 132 additions and 51 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import asyncio
import html
import logging
import aiosqlite
from googleapiclient.discovery import build
@@ -77,8 +78,8 @@ async def fetch_subscriptions():
VALUES (?, ?, ?, ?, ?, ?, ?)
""", (
vid,
snippet.get("title", "Untitled"),
snippet.get("channelTitle", "Unknown"),
html.unescape(snippet.get("title", "Untitled")),
html.unescape(snippet.get("channelTitle", "Unknown")),
snippet.get("channelId", cid),
f"https://www.youtube.com/watch?v={vid}",
snippet.get("thumbnails", {}).get("high", {}).get("url", ""),