Commit Graph

228 Commits

Author SHA1 Message Date
69cdf05341 Apply isort 2021-09-08 20:54:34 +02:00
06e0ada95b Allow POST requests 2021-09-08 20:43:21 +02:00
6f50443995 morss: Options return None instead of False if no match
Better for default fn values
2021-08-29 00:19:09 +02:00
da5442a1dc feedify: support any type (json, xml, html) 2021-08-29 00:17:28 +02:00
9ecf856f10 Add :resolve to remove (some?) tracking links 2020-09-15 22:57:52 +02:00
0f33db248a Add license info in each file 2020-08-26 20:08:22 +02:00
0ac590c798 Set MAX_/LIM_* settings via env var 2020-08-23 16:09:58 +02:00
f65fb45030 :debug completely deprecated in favour of DEBUG= 2020-08-23 14:33:32 +02:00
7a560181f7 Use env var for DEBUG 2020-08-23 14:23:45 +02:00
baccd3b22b Move parseOptions to cgi.py
As it is no longer used in cli.py
2020-08-22 00:37:34 +02:00
bd182bcb85 Move cli code to argParse
Related code changes (incl. :format=xyz)
2020-08-21 23:52:56 +02:00
c7c2c5d749 Removed unused filterOptions code 2020-08-21 23:23:33 +02:00
c6b52e625f split morss.py into __main__/cgi/cli.py
Should hopefully allow cleaner code in the future
2020-08-21 22:17:55 +02:00
6021b912ff morss: fix item removal
Usual issue when editing a list while looping over it
2020-07-06 19:25:48 +02:00
f18a128ee6 Change :first for :newest
i.e. toggle default for the more-obvious option
2020-07-06 19:25:17 +02:00
15951d228c Add :first to NOT sort items by date 2020-07-06 11:39:08 +02:00
c1b1f5f58a morss: restrict iframe use from :get to avoid abuse 2020-06-09 12:33:37 +02:00
985185f47f morss: more flexible feed creator auto-detection 2020-06-08 13:03:24 +02:00
68c46a1823 morss: remove deprecated twitter/fb link handling 2020-05-13 12:31:09 +02:00
91be2d229e morss: ability to use first link from desc instead of default link 2020-05-13 12:29:53 +02:00
038f267ea2 Rename :theforce into :force 2020-05-13 11:49:15 +02:00
22005065e8 Use etree.tostring 'method' arg
Gives appropriately formatted html code.
Some pages might otherwise be rendered as blank.
2020-05-13 11:44:34 +02:00
7d0d416610 morss: cache articles for 24hrs
Also make it possible to refetch articles, regardless of cache
2020-05-12 21:10:31 +02:00
e09d0abf54 morss: remove deprecated peace of code 2020-05-07 16:05:30 +02:00
ff26a560cb Shift safari work around to morss.py 2020-05-07 16:04:54 +02:00
73b477665e morss: separate :clip with <hr> instead of stars 2020-05-02 19:19:54 +02:00
b425992783 morss: don't follow alt=rss with custom feeds
To have the same page as with :get=page and to avoid shitty feeds
2020-05-02 19:18:58 +02:00
27a42c47aa morss: use final request url
Code is not very elegant...
2020-04-28 22:30:21 +02:00
c27c38f7c7 crawler: return dict instead of tuple 2020-04-28 22:29:07 +02:00
a1dc96cb50 feeds: remove mimetype from function call as no longer used 2020-04-28 22:07:25 +02:00
749acc87fc Centralize url clean up in crawler.py 2020-04-28 22:03:49 +02:00
c3f06da947 morss: process(): specify encoding for clarity 2020-04-28 14:45:00 +02:00
44a3e0edc4 readabilite: specify in- and out-going encoding 2020-04-28 14:44:35 +02:00
ec8edb02f1 Various small bug fixes 2020-04-19 12:54:02 +02:00
d01b943597 Remove leftover threading var 2020-04-19 12:51:11 +02:00
b361aa2867 Add timeout to :get 2020-04-19 12:50:26 +02:00
4ce3c7cb32 Small code clean ups 2020-04-19 12:50:05 +02:00
7e45b2611d Disable multi-threading
Impact was mostly negative due to locks
2020-04-19 12:29:52 +02:00
e99c5b3b71 morss: more sensible default MAX/LIM values 2020-04-18 17:21:45 +02:00
0b31e97492 morss: remove debug code in http file handler 2020-04-14 23:20:03 +02:00
b0ad7c259d Add README & LICENSE to data_files 2020-04-14 19:34:12 +02:00
59139272fd Auto-detect the location of www/
Either ../www or /usr/share/morss
Adapted README accordingly
2020-04-14 18:07:19 +02:00
e6b7c0eb33 Fix app definition for uwsgi 2020-04-13 15:30:09 +02:00
8e5e8d24a4 Timezone fixes 2020-04-10 20:33:59 +02:00
ee78a7875a morss: focus on the most recent feed items 2020-04-10 16:08:13 +02:00
47b33f4baa morss: specify server output encoding 2020-04-09 19:10:45 +02:00
a32f5a8536 readabilite: add debug option (also used by :get) 2020-04-09 19:08:13 +02:00
63a06524b7 morss: various encoding fixes 2020-04-09 19:06:51 +02:00
78cea10ead morss: replace :getpage with :get
Also provides readabilite debugging
2020-04-09 18:43:20 +02:00
f3d1f92b39 Detect encoding everytime 2020-04-07 10:38:36 +02:00