From 8b313acd91a77ee8aac78244e00f4107aa374f82 Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Tue, 9 Jan 2024 16:00:01 +0000 Subject: [PATCH] Include entry Id in formed message --- slixfeed/action.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/slixfeed/action.py b/slixfeed/action.py index b278c8c..046461b 100644 --- a/slixfeed/action.py +++ b/slixfeed/action.py @@ -158,8 +158,10 @@ def list_unread_entries(result, feed_title): link = remove_tracking_parameters(link) link = (replace_hostname(link, "link")) or link news_item = ( - "\n{}\n{}\n{}\n" - ).format(str(title), str(link), str(feed_title)) + "\n{}\n{}\n{} [{}]\n" + ).format( + str(title), str(link), str(feed_title), str(ix) + ) return news_item