feat: support for "trending" playlists (without authors)

also introduces a fix for text run parsing (by forcing obj to be a dict)
This commit is contained in:
2025-10-05 17:22:15 +02:00
parent 719b545cb4
commit 5944fd2458
2 changed files with 3 additions and 1 deletions

View File

@@ -471,6 +471,8 @@ def extractTextFromSimpleOrRuns(obj: dict, default: str = "") -> str:
# Extracts the text both from "runs" and "simpleText"
# with failsafe to default.
text = default
if not isinstance(obj, str):
return default
if "runs" in obj:
text = runsToText(obj["runs"])
elif "simpleText" in obj: