From b3974280d483a7727a446e277cc4c346f46371ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Helle=C5=9Ben?= Date: Mon, 9 Mar 2026 06:37:16 +0100 Subject: [PATCH] Simplify game addition notification in GameFeed; update links format --- twitch/feeds.py | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/twitch/feeds.py b/twitch/feeds.py index 0f54931..0b4f731 100644 --- a/twitch/feeds.py +++ b/twitch/feeds.py @@ -444,24 +444,15 @@ class GameFeed(Feed): game_url: str = reverse("twitch:game_detail", args=[twitch_id]) rss_feed_url: str = reverse("twitch:game_campaign_feed", args=[twitch_id]) twitch_directory_url: str = getattr(item, "twitch_directory_url", "") - if slug: - description_parts.append( - SafeText( - f"

New game has been added to ttvdrops.lovinator.space: {game_name} by {game_owner}\n" - f"Game Details\n" - f"Twitch\n" - f"RSS feed\n

", - ), - ) - else: - description_parts.append( - SafeText( - f"

A new game has been added to ttvdrops.lovinator.space: {game_name} by {game_owner}\n" - f"Game Details\n" - f"Twitch\n" - f"RSS feed\n

", - ), - ) + + description_parts.append( + SafeText( + f"

New game has been added to ttvdrops.lovinator.space: {game_name} by {game_owner}\n\n" + f"[Details] " + f"[Twitch] " + f"[RSS feed]\n

", + ), + ) return SafeText("".join(str(part) for part in description_parts))