fix: decode HTML entities in titles; add note timestamps; reorder layout — title first, AI digest below
This commit is contained in:
+3
-2
@@ -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", ""),
|
||||
|
||||
Reference in New Issue
Block a user