Skip to content

Commit b7fe3b1

Browse files
authored
Merge pull request #88 from hatena/fotolife-syntax-with-plain
フォトライフ記法にplain指定子を追加
2 parents a01a3db + 30e237b commit b7fe3b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fotolife-client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def upload_to_fotolife(path: str) -> str|None:
6262
"hatena": "http://www.hatena.ne.jp/info/xmlns#"
6363
}
6464
syntaxes = tree.findall("hatena:syntax", ns)
65-
syntax = syntaxes[0].text
65+
syntax = re.sub(r':image$', ':plain', syntaxes[0].text)
6666
print(f"[+] uploaded {path}")
6767
return syntax
6868
except HTTPError as e:

0 commit comments

Comments
 (0)