use 'v[0] == "c"' instead of 'v.startswith("c")'

This commit is contained in:
Mike Fährmann
2024-10-15 08:24:06 +02:00
parent d68bb78f44
commit 36883e458e
10 changed files with 24 additions and 20 deletions

View File

@@ -401,7 +401,7 @@ class DeviantartExtractor(Extractor):
html = content["html"]
markup = html["markup"]
if not markup.startswith("{"):
if not markup or markup[0] != "{":
return markup
if html["type"] == "tiptap":