Tulir Asokan
72d08096b7
Pass raw data to feedparser. Fixes #59
2025-01-30 15:47:09 +02:00
Tulir Asokan
a8f1340125
Update feedparser input
2025-01-30 14:07:57 +02:00
Tulir Asokan
b58202ebfb
Merge pull request #35 from AndrewKvalheim/entry-id-fallback
...
Stabilize entry IDs
2023-02-21 13:24:15 +02:00
Tulir Asokan
eeb71a008f
Fix formatting
2023-02-21 13:22:19 +02:00
Tulir Asokan
1a52d18f59
Show current template if ran without arguments
2023-02-21 12:43:32 +02:00
Andrew Kvalheim
03bb128005
Key entries by link if missing ID
...
Resolves the problem of incorrectly duplicated entries in feeds that
update content but don’t explicitly provide entry IDs. Example feed:
- https://www.to-rss.xyz/wikipedia/current_events/
Example entry:
<item>
<title>Current events: 2022-07-13</title>
<link>https://en.wikipedia.org/wiki/Portal:Current_events/2022_July_13 </link>
<description>[VARIABLE CONTENT]</description>
<pubDate>Wed, 13 Jul 2022 00:00:00 -0000</pubDate>
</item>
<item>
This behavior is suggested by the common practice of using an entry’s
link as its ID value, and is consistent with typical feed aggregators
such as Feedbin and Inoreader.
2022-07-14 11:05:40 -07:00
Tulir Asokan
877dcffb9c
Use custom user agent
2022-06-18 17:47:03 +03:00
Tulir Asokan
e87f332e0e
Don't break on old mautrix-python versions
2022-04-30 21:24:02 +03:00
Tulir Asokan
70eb6efed5
Fix Python 3.10 compatibility
2022-04-30 21:14:28 +03:00
Tulir Asokan
35f2fe63df
Add support for old SQLites
...
Closes #31
2022-04-30 21:14:19 +03:00
Tulir Asokan
b7e4a2a7bd
Add IF NOT EXISTS for entry table creation
2022-03-28 17:25:08 +03:00
Tulir Asokan
7b609ebb24
Use different message when there are no subscriptions
2022-03-26 17:19:32 +02:00
Tulir Asokan
9a75ee4021
Make default notification template configurable
...
Closes #29
Fixes #24
Co-authored-by: noantiq <timucin.boldt@udo.edu>
2022-03-26 14:45:07 +02:00
Tulir Asokan
18ef939a04
Switch to asyncpg for database
2022-03-26 14:32:18 +02:00
Tulir Asokan
428b471fec
Add some logs and hacky sorting
2022-02-22 23:11:11 +02:00
Tulir Asokan
947c4748b8
Strip surrounding whitespace from item summary
2022-02-22 23:10:42 +02:00
Tulir Asokan
e5380db9bd
Fix feed backoff not being reset correctly
2021-07-28 12:22:58 +03:00
Tulir Asokan
419e137848
Add some more logs
2021-07-21 18:19:13 +03:00
Tulir Asokan
b3e76c338e
Catch individual message send errors separately
2021-04-11 00:54:25 +03:00
Tulir Asokan
db492640d7
Respond with error when trying to subscribe to already subscribed feed
2021-04-11 00:50:32 +03:00
Tulir Asokan
79cd475312
Show erroring feeds in !rss subscriptions
2021-04-11 00:43:30 +03:00
Tulir Asokan
c185b31b1c
Fix incorrect use of time()
2021-04-10 14:20:55 +03:00
Tulir Asokan
5efba56c3b
Add backoff for fetching feeds that are down
2021-04-10 00:30:10 +03:00
Tulir Asokan
a8784f4377
Remove unused import
2020-10-22 13:26:06 +03:00
Tulir Asokan
be90ee5465
Fix replying to template update
2020-08-11 03:05:12 +03:00
Tulir Asokan
334acf141e
Add support for JSON feed version 1.1
2020-08-07 19:55:37 +03:00
Tulir Asokan
85e0fd9927
Fix getting feed title and other metadata
2020-08-05 18:41:09 +03:00
Tulir Asokan
e05ebe5dc6
Remove unused import
2020-08-05 13:17:35 +03:00
Tulir Asokan
135fa779f8
Create version table before checking database version
2020-08-05 13:16:04 +03:00
Tulir Asokan
21a65bc189
Ignore non-problematic feed parsing errors
2020-08-03 14:40:42 +03:00
Tulir Asokan
2079504e39
Fix handling errors in feed parsing
2020-08-03 03:19:32 +03:00
Tulir Asokan
ad39e34ae2
Fix handling JSON feeds with extra stuff in content-type header
2020-08-03 03:12:39 +03:00
Tulir Asokan
44927f2cf5
Add support for JSON feeds
2020-08-03 03:03:19 +03:00
Tulir Asokan
c07beb23be
Remove loop parameter in asyncio.gather
2020-07-13 03:10:50 +03:00
Tulir Asokan
89ebfe7283
Add option to send posts as m.text
2020-07-01 17:20:14 +03:00
Tulir Asokan
391db1405f
Allow HTML in RSS messages
2020-05-21 01:10:25 +03:00
Tulir Asokan
adae757081
Merge pull request #10 from rda0/master
...
Hash entry content if id is missing
2020-05-16 17:25:30 +03:00
Tulir Asokan
4532e1bb4f
Handle ValueError in get_date. Fixes #11
2020-02-09 21:59:42 +02:00
Sven Mäder
eed44fcafc
Hash entry content if id is missing
2020-01-16 22:21:55 +01:00
Tulir Asokan
4e3b9ef416
Move RSS subscriptions on room upgrade
2019-11-21 23:50:56 +02:00
Tulir Asokan
d3ddebedb5
Fix content-encoding header
2019-10-16 12:55:06 +03:00
Tulir Asokan
bcbab52c0c
Pass feed URL to feedparser. Fixes #7
2019-09-17 22:19:30 +03:00
Tulir Asokan
6833af3404
Update copyright year
2019-06-08 17:42:48 +03:00
Tulir Asokan
8a769bbe18
Fix possible feed reading errors
2019-06-01 23:42:00 +03:00
Tulir Asokan
e92d8fceb9
Check specific permission for RSS management
2019-04-12 21:37:08 +03:00
Tulir Asokan
6dbb12f2d4
Handle attribute errors in find_entries
2019-02-14 18:42:39 +02:00
Tulir Asokan
e2a42a4166
Update to use new command handling system
2018-12-26 18:36:11 +02:00
Tulir Asokan
4cb519a210
Update to use new event handling system
...
TODO: Switch to new command handling system
2018-12-25 00:54:37 +02:00
Tulir Asokan
b28f20da92
Add internal admin list to bypass room permission checks
...
Pending maubot-wide access controls
2018-11-29 01:38:17 +02:00
Tulir Asokan
b3d4482c3c
Fix bugs and make command prefix configurable
2018-11-29 00:40:38 +02:00