Skip to content

Commit

Permalink
Merge pull request #88 from hatena/fotolife-syntax-with-plain
Browse files Browse the repository at this point in the history
フォトライフ記法にplain指定子を追加
  • Loading branch information
theoremoon authored Sep 10, 2024
2 parents a01a3db + 30e237b commit b7fe3b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fotolife-client.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def upload_to_fotolife(path: str) -> str|None:
"hatena": "http://www.hatena.ne.jp/info/xmlns#"
}
syntaxes = tree.findall("hatena:syntax", ns)
syntax = syntaxes[0].text
syntax = re.sub(r':image$', ':plain', syntaxes[0].text)
print(f"[+] uploaded {path}")
return syntax
except HTTPError as e:
Expand Down

0 comments on commit b7fe3b1

Please sign in to comment.