removing all indentation errors that came previously
This commit is contained in:
parent
81df7599c7
commit
024778a155
1 changed files with 40 additions and 40 deletions
|
|
@ -299,7 +299,7 @@ class YouTubeConverter(DocumentConverter):
|
|||
obj_start = lines[0].find("{")
|
||||
obj_end = lines[0].rfind("}")
|
||||
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
|
||||
if attrdesc:
|
||||
metadata["description"] = str(attrdesc["content"])
|
||||
|
|
|
|||
Loading…
Reference in a new issue