Added back correct provider, as well as author fields
This commit is contained in:
parent
c5cb655943
commit
22e4294469
1 changed files with 5 additions and 1 deletions
|
@ -54,12 +54,16 @@ def main():
|
|||
print(feed.entries[0]["published"], published_time, now)
|
||||
# Generate the webhook
|
||||
webhook = {
|
||||
"content": "RSS Feed Update from " + str(hook["name"]),
|
||||
"embeds": [
|
||||
{
|
||||
"title": str(feed.entries[0]["title"]),
|
||||
"url": str(feed.entries[0]["link"]),
|
||||
"color": 5814783,
|
||||
"provider": {
|
||||
"name": "DiscoRSS",
|
||||
"url": "https://git.frzn.dev/amr/discorss",
|
||||
},
|
||||
"author": {"name": str(hook["name"]), "url": str(hook["siteurl"])},
|
||||
"fields": [
|
||||
{
|
||||
"name": str(feed.entries[0]["title"]),
|
||||
|
|
Loading…
Add table
Reference in a new issue