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