From c5cb655943cd9cf1e8d6b91a08ffda95076aa165 Mon Sep 17 00:00:00 2001 From: "A.M. Rowsell" Date: Fri, 31 Jan 2025 16:27:44 -0500 Subject: [PATCH 1/2] Increased description length again to 150. --- discorss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discorss.py b/discorss.py index 07b80a2..a89a06c 100755 --- a/discorss.py +++ b/discorss.py @@ -24,10 +24,10 @@ log_file_name = r"/app.log" def getDescription(feed): try: tempStr = str(feed.entries[0]["summary_detail"]["value"]) - desc = tempStr[:100] if len(tempStr) > 100 else tempStr + desc = tempStr[:150] if len(tempStr) > 150 else tempStr except KeyError: tempStr = str(feed.entries[0]["description"]) - desc = tempStr[:100] if len(tempStr) > 100 else tempStr + desc = tempStr[:150] if len(tempStr) > 150 else tempStr return desc From 22e4294469658de9fa3592c7fe8955f77ea00dc1 Mon Sep 17 00:00:00 2001 From: "A.M. Rowsell" Date: Fri, 31 Jan 2025 16:28:04 -0500 Subject: [PATCH 2/2] Added back correct provider, as well as author fields --- discorss.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/discorss.py b/discorss.py index a89a06c..1b3df2c 100755 --- a/discorss.py +++ b/discorss.py @@ -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"]),