Commit graph

279 commits

Author SHA1 Message Date
Schimon Jehudah
57e0425c13 Add error handling upon failure to to join to a groupchat (Thanks f_ from postmarketOS) 2024-05-12 16:25:21 +00:00
Schimon Jehudah
788520daf1 Restore instructions for pipx in file "README.md";
Remove instructions "tool.setuptools.packages.find" from file PyProject.
2024-05-12 14:02:17 +00:00
Schimon Jehudah
34da47bcd2 Fix error handling and correct variable for function check_entry_exist (Thank you mirux) 2024-05-12 11:05:49 +00:00
Schimon Jehudah
8bbad28894 Create function "get_properties_of_feed";
Do not attempt to scan URL for items upon command "add";
Minor improvements;
Add more URLs to file feeds.toml.
2024-05-12 09:55:23 +00:00
Schimon Jehudah
d0e23b3eb9 Move directory screenshots to level root. 2024-05-12 09:24:13 +00:00
Schimon Jehudah
c353673819 Update README;
Add screenshots.
2024-05-12 09:17:31 +00:00
Schimon Jehudah
87dc369b35 Fix update which halted upon attempt to insert data of feed due to attempt to insert a dict object instead of a string feed.image.href. 2024-04-14 17:24:16 +00:00
Schimon Jehudah
bcbbf1ab04 Add functionality for handling with PubSub nodes;
Add functionality to submit items from database to PubSub nodes;
Change the fashion by which items are sent;
Fix minor issues.
2024-04-14 12:56:45 +00:00
Schimon Jehudah
b69953eb7f Fix sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 0 supplied. (Thank you roughnecks) 2024-04-06 21:29:03 +00:00
Schimon Jehudah
8e45ebc071 Fix function "mark all feed as read" (Thank you roughnecks) 2024-04-06 20:03:23 +00:00
Schimon Jehudah
71403cda6b Fix media (i.e. enclosure) support (Thank you roughnecks). 2024-04-06 19:59:30 +00:00
Schimon Jehudah
b6ca4aaa46 Fixed adding of URLs via chat (Thank you roughnecks) 2024-04-05 15:59:24 +00:00
Schimon Jehudah
60756dbdd2 Ad-Hoc: Add more operator options;
Ad-Hoc: Add menus (list-single) for selection from a fixed list of bookmarks ans contacts;
Database: Identifier (node name) includes hyphens instead of dots.
Database: SQLite database now stores more items.
Bookmarks: Improve code;
MUC: Improve code;
SQLite: Manjor code changes to adapt to new table;
URL: Fix redirection (hostname switcher).
2024-04-05 15:25:04 +00:00
Schimon Jehudah
e0bc0bddf7 Add more operator option, also for export/import.
Fix var transfer from one form to another.
Improve handling with in-chat command arguments.
2024-03-28 17:21:45 +00:00
Schimon Jehudah
01c4959610 Thank you Mr. Simone Canaletti 2024-03-27 16:57:28 +00:00
Schimon Jehudah
d6eec41a86 Add commands for PubSub.
Improve joining to MUC (WIP).
Improve PubSub (WIP).
2024-03-27 16:20:32 +00:00
Schimon Jehudah
5f946fe0b6 Fix error upon attempt to get JID from values['jid'] (Thank you roughnecks). 2024-03-26 19:32:24 +00:00
Schimon Jehudah
df7cc6ed2b Fix export (Thank you roughnecks).
Load commands first at session start (New PubSub related code might block or postpone commands from being loaded).
2024-03-26 17:49:16 +00:00
Schimon Jehudah
5507b16161 Improve PubSub support (WIP).
Improve MUC handling.
Add command "send" to add feeds to other JIDs.
Ad-Hoc: Add functionality to specify JId to commit actions on upon.
Add subscription preview upon adding a subscription.
Add project Jabber RSS Transport to bots list.
Add projects Psi and Psi+ to clients list.
2024-03-26 16:23:22 +00:00
Schimon Jehudah
35beab7802 Add PubSub functionality. 2024-03-24 08:14:20 +00:00
Schimon Jehudah
aed43f34dd Add a handler to handle pending tasks. 2024-03-18 18:49:52 +00:00
Schimon Jehudah
926c0341c6 ePUB: Use function "pop" instead of "replace". 2024-03-15 15:20:54 +00:00
Schimon Jehudah
b81ff04c0d Forms: Remove Cheogram boolean in favour of "Next".
Forms: Set title inside instructions field.
ePUB: Use new keyword argument absolute_location from xml2epub.
2024-03-15 14:55:22 +00:00
Schimon Jehudah
85311edcf2 Fix error when checking for status moderator (Thank you roughnecks).
Enhance Publish UI.
2024-03-13 20:58:38 +00:00
Schimon Jehudah
f18659fd88 Print user agent and http proxy if set 2024-03-13 16:17:43 +00:00
Schimon Jehudah
3c89b84908 (Hopefully) Fix fetching of new subscriptions. 2024-03-13 15:44:20 +00:00
Schimon Jehudah
1b2167f207 Output message instead of status code only. 2024-03-13 14:35:57 +00:00
Schimon Jehudah
6d75d02822 Fix async/await (Thank you roughnecks) 2024-03-13 13:28:32 +00:00
Schimon Jehudah
b0fff01c22 Fix adding of a bookmark 2024-03-13 13:25:49 +00:00
Schimon Jehudah
7c197c2343 Fix malfunction when setting value of key "old" to zero (Thank you roughnecks). 2024-03-13 12:09:48 +00:00
Schimon Jehudah
8e76ae4506 Fix saving of bookmarks via bookmark manager.
Fix default settings file.
2024-03-13 11:57:53 +00:00
Schimon Jehudah
077042dd43 Raise exception upon missing value 2024-03-13 07:59:15 +00:00
Schimon Jehudah
9692d92e21 Add missing key filter 2024-03-12 21:31:00 +00:00
Schimon Jehudah
ec9a9e5475 Set http_proxy to "" (empty) 2024-03-12 21:28:02 +00:00
Schimon Jehudah
8ff51ff67b Disable (i.e. comment) http_proxy 2024-03-12 21:25:36 +00:00
Schimon Jehudah
84b960f2fc Add about.toml 2024-03-12 20:27:48 +00:00
Schimon Jehudah
322e893d61 Fix ping for component (Thank you mathieui and MattJ).
Fix information.toml.
Add context "all" to command.toml.
2024-03-12 19:46:50 +00:00
Schimon Jehudah
b1a1955545 Replace configuration file INI by TOML.
Fix ping functionality when activated as component (thank you Guus and MattJ).
Add initial code for XEP-0060: Publish-Subscribe.
Fix case-sensitivity with setting keys sent in-chat-command (Thank you mirux)
2024-03-12 17:13:01 +00:00
Schimon Jehudah
ba61250f84 Add new command: options 2024-03-09 23:31:06 +00:00
Schimon Jehudah
ffa002cfa0 Correct information of JabRSS 2024-03-09 20:24:31 +00:00
Schimon Jehudah
5d8580a0d9 Correct links to project monocles 2024-03-09 19:47:20 +00:00
Schimon Jehudah
e553166954 Improve About form.
Improve handling of setting change.
2024-03-09 19:03:18 +00:00
Schimon Jehudah
8d9b060314 Add missing functions for ad-hoc command Browse.
Set 50 seconds delay between each URL.
2024-03-08 14:21:22 +00:00
Schimon Jehudah
ae89521d9b Reduce amount of Python keywords async and await 2024-03-08 09:14:36 +00:00
Schimon Jehudah
8388cf5084 Make sure a value is selected for a given setting. 2024-03-07 20:29:52 +00:00
Schimon Jehudah
f489e1f672 Reset setting or settings upon command default key or command defaults.
Fix issue of extra placeholder (Thank you mirux).
2024-03-07 20:20:10 +00:00
Schimon Jehudah
05168afa14 Reload settings on runtime.
Fix several issues.
2024-03-07 19:06:31 +00:00
Schimon Jehudah
da48b429d3 Add missing parameters and rename some instances of jid to jid_bare 2024-03-07 16:28:53 +00:00
Schimon Jehudah
31babfa378 Convert value of key filter to integer 2024-03-07 15:41:42 +00:00
Schimon Jehudah
5d1cb85a36 Manage settings from a dict as a handler.
Make the inclusive/main  filter optional.
2024-03-07 14:52:51 +00:00
Schimon Jehudah
aa5f45cddc Settings: Manage several class instance objects. 2024-03-07 06:56:11 +00:00
Schimon Jehudah
9969f8ded1 Add Config class as instance. See comment above class Config inside module config. 2024-03-06 12:52:07 +00:00
Schimon Jehudah
6dd1089c37 Measure function elapsed time period and display a warning for a period of over a second. 2024-03-04 10:16:49 +00:00
Schimon Jehudah
f25cb70181 Add logging 2024-03-03 14:13:01 +00:00
Schimon Jehudah
f207dc1632 Fix call to function adhoc_commands 2024-02-29 20:29:41 +00:00
Schimon Jehudah
56c7bf40a8 Correct modules client and component 2024-02-29 20:12:03 +00:00
Schimon Jehudah
3733c4e11a Remove module command.py.
Help wanted.
See issue #6
2024-02-29 19:53:05 +00:00
Schimon Jehudah
072614fffe Ad-Hoc: Minor fixes 2024-02-29 17:13:53 +00:00
Schimon Jehudah
270551b8ee Message:
* Remove HTML tags from titles.
Fetch:
* Handle all exceptions.
SQLite:
* Add more functions to handle new ad-hoc commands.
Ad-Hoc:
* Move all commands into a single module called command.
* Remove commands from client and component.
Documentation:
* Comment commands that are not available.
2024-02-29 17:08:53 +00:00
Schimon Jehudah
b5e5a179f4 Add option to set message formatting.
Restore summary.
2024-02-26 01:17:50 +00:00
Schimon Jehudah
bfde775369 Send OPML file even when using Ad-hoc command 2024-02-25 20:33:33 +00:00
Schimon Jehudah
5135186717 Add support for tags 2024-02-25 19:21:10 +00:00
Schimon Jehudah
afeaa8707b Add more permissions to ad-hoc commands from MUC (see Prosody mod_muc_adhoc_bots)
Handle more errors.
Add ad-hoc command Profile.
Support Python 3.10 (tomli).
Add table for scraping HTML (WIP).
Minor fixes.
2024-02-25 01:52:24 +00:00
Schimon Jehudah
56f85fdf26 Add command version.
Invite to groupchat upon command support.
2024-02-23 14:54:54 +00:00
Schimon Jehudah
7d45a3249a Add ability to set number of immediate sent updates 2024-02-23 14:25:56 +00:00
Schimon Jehudah
e2652760bc Fix component mode 2024-02-23 13:51:19 +00:00
Schimon Jehudah
e13807442e Do not accept messages from self JID 2024-02-23 12:53:14 +00:00
Schimon Jehudah
bb9a1926f6 Add XEP-0356, XEP-0297 and XEP-0203 2024-02-23 09:00:39 +00:00
Schimon Jehudah
9bb37bc932 Add functionality to download article via ad-hoc.
Add helper for URL.
2024-02-23 02:55:31 +00:00
Schimon Jehudah
6e2a7305c2 Fix keys by setting lower case.
Consolidate commands into options.
Various of fixes and improvements.
2024-02-22 14:09:13 +00:00
Schimon Jehudah
74192965d1 Add missing file feeds.toml.
Attempting to improve form Subscribers.
2024-02-20 13:16:32 +00:00
Stephen Paul Weber
aedd52f145
Cleanup article render, show clickable link 2024-02-19 22:57:10 -05:00
Schimon Jehudah
32d765b482 Fix fetching items upon setting "old".
Add form Browse
Add form Discover and Search (experimental)
Add form Remove
2024-02-19 20:50:53 +00:00
Schimon Jehudah
88261571d1 Remove breakpoint 2024-02-19 00:42:59 +00:00
Schimon Jehudah
85f1ba18f0 Add functionality to set feed name (i.e. command rename).
Improve forms.
2024-02-19 00:26:10 +00:00
Schimon Jehudah
7b98d32d7f Fix keywords extracted from sqlite.
Improve modiles fetch and crawl.
Add form featured feeds.
Add form roster manager.
Add form subscibers manager.
WIP
2024-02-17 23:21:44 +00:00
Schimon Jehudah
c1dec9d808 Adjust modules client and component 2024-02-16 13:16:52 +00:00
Schimon Jehudah
9685b34536 Fix AttributeError: module 'slixfeed.sqlite' has no attribute 'get_filters_value' 2024-02-16 12:46:55 +00:00
Schimon Jehudah
bb44cd925c Fix error upon attempt to edit filter via form while another form is not set 2024-02-16 12:33:07 +00:00
Schimon Jehudah
10762a69e4 Fix check for filters and settings keys 2024-02-16 12:12:06 +00:00
Schimon Jehudah
288e5157fa Fix submission of filters 2024-02-16 02:59:01 +00:00
Schimon Jehudah
aa747985d9 Minor changes to command list items 2024-02-16 02:21:08 +00:00
Schimon Jehudah
8b6584fe6d Remove JID from title.
Add a command instead.
Command to be removed.
2024-02-16 02:14:23 +00:00
Schimon Jehudah
4e193a2b02 Add for Add Subscription.
Segregating more code as one task per function, particularly adding of new subscription.
Fix allow/deny keys.
2024-02-16 01:46:04 +00:00
Schimon Jehudah
6c0c571c1d Merge branch 'nicer-credits' into 'master'
Nicer format for credits page

See merge request sjehuda/slixfeed!8
2024-02-16 01:38:07 +00:00
Schimon Jehudah
21bfd3e3d5 Merge branch 'clear-next' into 'master'
Clear session['next'] if we are done

See merge request sjehuda/slixfeed!7
2024-02-16 01:34:09 +00:00
Schimon Jehudah
a4f870f26c Merge branch 'uri-type' into 'master'
Add xs:anyURI type to import url field

See merge request sjehuda/slixfeed!9
2024-02-16 01:32:15 +00:00
Stephen Paul Weber
2fa3173031
Remove var from fixed fields
Since they don't need to get submitted back and are mostly just titles.

May want to consider https://xmpp.org/extensions/xep-0141.html in the future
2024-02-15 00:16:03 -05:00
Stephen Paul Weber
f299876e5a
Add xs:anyURI type to import url field
Allows using eg the URL keyboard layout on touch screen
2024-02-15 00:09:26 -05:00
Stephen Paul Weber
b47a9cd938
Nicer format for credits page 2024-02-15 00:04:35 -05:00
Stephen Paul Weber
93ae763db7
Clear session['next'] if we are done
It will currently contain whatever it was last set to since the session
value is persistent across steps, but the way to signal to slixmpp that
we are done and it should send status=completed is to have next set to
None, per https://codeberg.org/poezio/slixmpp/src/branch/master/slixmpp/plugins/xep_0050/adhoc.py#L317
2024-02-14 23:20:51 -05:00
Schimon Jehudah
e8d5f082d0 Add export/import forms.
Improve Subscriptions form (non functional yet).
2024-02-15 00:16:51 +00:00
Schimon Jehudah
c8cd5e1b09 Improve groupchat functions to handle with erroneous cases 2024-02-14 17:09:54 +00:00
Schimon Jehudah
5c2ee8d51c Merge branch 'range-example' into 'master'
Set datatype and range for settings fields

See merge request sjehuda/slixfeed!6
2024-02-14 16:15:52 +00:00
Schimon Jehudah
7d243a4186 Merge branch 'fix-caps-more' into 'master'
Send presence from full JID, not bare JID

See merge request sjehuda/slixfeed!5
2024-02-14 09:10:24 +00:00
Stephen Paul Weber
fe19319066
Set datatype and range for settings fields
This allows the client to know that the values are all integers within
some range.  Note that the min/max settings aren't working quite right
per https://codeberg.org/poezio/slixmpp/issues/3512
2024-02-14 00:21:52 -05:00
Stephen Paul Weber
ef5c9ac2be
Send presence from full JID, not bare JID
It will end up from full jid anyway and this fixes the cache lookup of
the caps hash so it uses the right one.
2024-02-13 22:08:50 -05:00
Schimon Jehudah
dba7eefb96 Add About, Bookmarks and Manual forms 2024-02-14 03:04:49 +00:00
Schimon Jehudah
12689b8ef1 Merge branch 'error-note' into 'master'
Use note of type=error to signal an error

See merge request sjehuda/slixfeed!4
2024-02-13 21:07:57 +00:00
Stephen Paul Weber
d410ef8ab3
Use note of type=error to signal an error 2024-02-13 15:26:05 -05:00