Update rss.py

This commit is contained in:
SpudGunMan
2025-10-29 23:37:18 -07:00
parent 46a33178f6
commit da10af8d93
+3 -2
View File
@@ -140,8 +140,9 @@ def get_rss_feed(msg):
def get_newsAPI(user_search="meshtastic"):
# Fetch news from NewsAPI.org
user_search = user_search.lower().replace("latest ", "", 1).strip()
# if seach term is empty, use default
user_search = user_search.strip()
if user_search.lower().startswith("latest"):
user_search = user_search[6:].strip()
if not user_search:
user_search = "meshtastic"
try: