From 13b7c94f1780893b60bc6821cf8071320847c80f Mon Sep 17 00:00:00 2001 From: "Schimon Jehudah, Adv." Date: Sun, 15 Dec 2024 18:18:40 +0200 Subject: [PATCH] Fix display count of results; Thank you. mirux. --- slixfeed/configs/feeds.toml | 12 +++++++++--- slixfeed/version.py | 4 ++-- slixfeed/xmpp/commands.py | 7 ++++--- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/slixfeed/configs/feeds.toml b/slixfeed/configs/feeds.toml index 656c492..5c750be 100644 --- a/slixfeed/configs/feeds.toml +++ b/slixfeed/configs/feeds.toml @@ -188,13 +188,13 @@ tags = ["linux", "debian", "ubuntu", "industry"] lang = "en" name = "Dig Deeper" link = "https://diggy.club/atom.xml" -tags = ["linux", "health", "computer", "wisdom", "life", "industry"] +tags = ["linux", "health", "computer", "wisdom", "research", "life", "industry"] [[feeds]] lang = "en" name = "Earth Newspaper" link = "https://earthnewspaper.com/feed/atom/" -tags = ["technology", "world", "war", "politics"] +tags = ["technology", "sports", "culture", "world", "war", "politics"] [[feeds]] lang = "en" @@ -380,7 +380,7 @@ tags = ["design", "diy", "household"] lang = "en-us" name = "12bytes.org" link = "https://12bytes.org/feed.xml" -tags = ["conspiracy", "health", "government", "war", "world"] +tags = ["conspiracy", "linux", "computer", "security", "privacy", "culture", "health", "government", "war", "world"] [[feeds]] lang = "en-us" @@ -430,6 +430,12 @@ name = "Disroot Journal" link = "https://disroot.org/en/blog.atom" tags = ["decentralization", "privacy"] +[[feeds]] +lang = "en-us" +name = "Earthing Institute" +link = "https://earthinginstitute.net/feed/atom/" +tags = ["health", "meditation", "yoga"] + [[feeds]] lang = "en-us" name = "F-Droid" diff --git a/slixfeed/version.py b/slixfeed/version.py index ef51aeb..9f3504b 100644 --- a/slixfeed/version.py +++ b/slixfeed/version.py @@ -1,2 +1,2 @@ -__version__ = '0.1.104' -__version_info__ = (0, 1, 104) +__version__ = '0.1.105' +__version_info__ = (0, 1, 105) diff --git a/slixfeed/xmpp/commands.py b/slixfeed/xmpp/commands.py index 0ab81ae..53133f9 100644 --- a/slixfeed/xmpp/commands.py +++ b/slixfeed/xmpp/commands.py @@ -418,7 +418,7 @@ class XmppCommands: result_link = result['link'] message += ('Title : {result_name}\n' 'Link : {result_link}\n\n') - message += '```\nTotal of {len(results)} feeds.' + message += f'```\nTotal of {len(results)} feeds.' elif result['exist']: result_link = result['link'] result_name = result['name'] @@ -488,7 +488,7 @@ class XmppCommands: "Link : {}\n" "\n" .format(result['name'], result['link'])) - message += f'```\nTotal of {results} feeds.' + message += f"```\nTotal of {len(results)} feeds." elif result['exist']: message = ('> {}\nNews source "{}" is already ' 'listed in the subscription list at ' @@ -771,7 +771,8 @@ class XmppCommands: message = Feed.view_entry(url, feed, num) break else: - result = await FeedDiscovery.probe_page(self.settings_network, self.pathnames, url, document) + result = await FeedDiscovery.probe_page( + self.settings_network, self.pathnames, url, document) if isinstance(result, list): results = result message = f"Syndication feeds found for {url}\n\n```\n"