removing all indentation errors that came previously

This commit is contained in:
Aviral Bhardwaj 2024-12-15 20:48:38 +05:30
parent 81df7599c7
commit 024778a155

View file

@ -299,7 +299,7 @@ class YouTubeConverter(DocumentConverter):
obj_start = lines[0].find("{") obj_start = lines[0].find("{")
obj_end = lines[0].rfind("}") obj_end = lines[0].rfind("}")
if obj_start >= 0 and obj_end >= 0: if obj_start >= 0 and obj_end >= 0:
data = json.loads(lines[0][obj_start: obj_end + 1]) data = json.loads(lines[0][obj_start : obj_end + 1])
attrdesc = self._findKey(data, "attributedDescriptionBodyText") # type: ignore attrdesc = self._findKey(data, "attributedDescriptionBodyText") # type: ignore
if attrdesc: if attrdesc:
metadata["description"] = str(attrdesc["content"]) metadata["description"] = str(attrdesc["content"])