From 002e3cba33f098c00bfc6ba95fa1f37c6670da77 Mon Sep 17 00:00:00 2001 From: sherl Date: Sun, 5 Oct 2025 18:15:56 +0200 Subject: [PATCH] hotfix: glaring mistake while parsing text runs --- ythdd_struct_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ythdd_struct_parser.py b/ythdd_struct_parser.py index 8f56fca..efe1377 100644 --- a/ythdd_struct_parser.py +++ b/ythdd_struct_parser.py @@ -471,7 +471,7 @@ 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): + if not isinstance(obj, dict): return default if "runs" in obj: text = runsToText(obj["runs"])