From 3f867429e604c993d0fd6599eb421579dc660552 Mon Sep 17 00:00:00 2001 From: Daniel Spittank Date: Sun, 5 Nov 2023 23:30:13 +0100 Subject: [PATCH] small fix to publishing date in mastodon post --- .gitignore | 5 +++++ main.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d64eafa..d59b8c9 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,11 @@ config.yml posts/ sentences/ +# Apple +.DS_Store +.AppleDouble +.LSOverride + # ---> Python # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/main.py b/main.py index a5e40e3..863de7e 100644 --- a/main.py +++ b/main.py @@ -64,7 +64,7 @@ def mastodon_post(text, text_hash, entry, audio_file_path): if cfg["mastodon"]["post"]["text"]: status += text if cfg["mastodon"]["post"]["date"]: - status += " – " + entry.pubdate + status += " – " + entry.published if cfg["mastodon"]["post"]["link"]: status += " – Quelle: " + entry.link