We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a01a3db + 30e237b commit b7fe3b1Copy full SHA for b7fe3b1
fotolife-client.py
@@ -62,7 +62,7 @@ def upload_to_fotolife(path: str) -> str|None:
62
"hatena": "http://www.hatena.ne.jp/info/xmlns#"
63
}
64
syntaxes = tree.findall("hatena:syntax", ns)
65
- syntax = syntaxes[0].text
+ syntax = re.sub(r':image$', ':plain', syntaxes[0].text)
66
print(f"[+] uploaded {path}")
67
return syntax
68
except HTTPError as e:
0 commit comments