From 322e893d61a3fc9fbc62f74d2e159b1fe62835f9 Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Tue, 12 Mar 2024 19:46:50 +0000 Subject: [PATCH] Fix ping for component (Thank you mathieui and MattJ). Fix information.toml. Add context "all" to command.toml. --- slixfeed/__main__.py | 2 +- slixfeed/action.py | 4 ++-- slixfeed/assets/commands.toml | 6 ++++++ slixfeed/assets/information.toml | 2 +- slixfeed/version.py | 4 ++-- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/slixfeed/__main__.py b/slixfeed/__main__.py index fe6ef59..ce8f213 100644 --- a/slixfeed/__main__.py +++ b/slixfeed/__main__.py @@ -122,7 +122,7 @@ class JabberComponent: xmpp.register_plugin('xep_0115') # Entity Capabilities xmpp.register_plugin('xep_0122') # Data Forms Validation xmpp.register_plugin('xep_0153') # vCard-Based Avatars - xmpp.register_plugin('xep_0199', {'keepalive': True}) # XMPP Ping + xmpp.register_plugin('xep_0199') # XMPP Ping xmpp.register_plugin('xep_0203') # Delayed Delivery xmpp.register_plugin('xep_0249') # Direct MUC Invitations xmpp.register_plugin('xep_0297') # Stanza Forwarding diff --git a/slixfeed/action.py b/slixfeed/action.py index 1dbc094..73046ad 100644 --- a/slixfeed/action.py +++ b/slixfeed/action.py @@ -1003,7 +1003,7 @@ async def scan_json(self, jid_bare, db_file, url): "{} {} {}" ).format( title, summary, pathname) - if int(self.settings['default']['filter']): + if self.settings['default']['filter']: print('Filter is now processing data.') allow_list = config.is_include_keyword(db_file, "allow", string) @@ -1292,7 +1292,7 @@ async def scan(self, jid_bare, db_file, url): "{} {} {}" ).format( title, summary, pathname) - if int(self.settings['default']['filter']): + if self.settings['default']['filter']: print('Filter is now processing data.') allow_list = config.is_include_keyword(db_file, "allow", string) diff --git a/slixfeed/assets/commands.toml b/slixfeed/assets/commands.toml index 208169b..0253783 100644 --- a/slixfeed/assets/commands.toml +++ b/slixfeed/assets/commands.toml @@ -1,3 +1,9 @@ +[all] +all = """ +all +Show all options. +""" + [action] url = """ diff --git a/slixfeed/assets/information.toml b/slixfeed/assets/information.toml index d96bae1..097affc 100644 --- a/slixfeed/assets/information.toml +++ b/slixfeed/assets/information.toml @@ -14,7 +14,7 @@ https://gitgud.io/sjehuda/slixfeed """ [note] -note = """ +info = """ You can run your own Slixfeed instance as a client, from your own \ computer, server, and even from a Linux phone (i.e. Droidian, Kupfer, \ Mobian, NixOS, postmarketOS), as well as from Termux. diff --git a/slixfeed/version.py b/slixfeed/version.py index 2f1666a..2484d29 100644 --- a/slixfeed/version.py +++ b/slixfeed/version.py @@ -1,2 +1,2 @@ -__version__ = '0.1.37' -__version_info__ = (0, 1, 37) +__version__ = '0.1.38' +__version_info__ = (0, 1, 38)