Compare commits
1 Commits
fb6b67deab
...
stable
Author | SHA1 | Date | |
---|---|---|---|
efe1584ab2 |
@ -48,7 +48,8 @@ if args.ipfs is not None:
|
||||
with ipfshttpclient.connect(args.ipfs, auth=(args.ipfs_username, args.ipfs_password)) as client:
|
||||
r = requests.get(post.content, allow_redirects=True, timeout=60)
|
||||
FILE_HASH = client.add_bytes(r.content)
|
||||
text += f"\nipfs: https://ipfs.bubbletea.dev/ipfs/{FILE_HASH}"
|
||||
text += f"\nipfs: ipfs://{FILE_HASH}"
|
||||
text += f" [(gateway)](https://ipfs.bubbletea.dev/ipfs/{FILE_HASH})"
|
||||
|
||||
text += f"\nsource: https://{args.booru}/post/{post.id_}"
|
||||
|
||||
|
Reference in New Issue
Block a user