1
0
mirror of https://github.com/sjlongland/tornado-news.git synced 2025-09-26 18:38:23 +10:00
Commit Graph

13 Commits

Author SHA1 Message Date
0a7497fba6
Handle entries that have no HTML content.
Some sites, notably ABC News, provide just plain-text content or a
practically identical HTML summary, resulting in neither appearing on
the feed.  This checks the output of the HTML content extraction and
falls back to the summary if that comes up empty.
2017-10-15 08:32:18 +10:00
9acacf2a96
Improve error reporting on failed fetch. 2017-10-15 08:02:48 +10:00
0e0e566756
Allow disabling of If-modified-since 2017-10-15 08:02:48 +10:00
da2e25f58e
Add connect_timeout and request_timeout options 2017-10-15 08:02:47 +10:00
3b2a520177
Handle missing id on entries. 2017-10-15 08:01:32 +10:00
b353f70cfa
Handle feeds with entries that lack IDs
The Australian Bureau of Meteorology is one such feed.
http://media.bom.gov.au/rss/

Instead, we'll generate one using the SHA1 hash of the link.
2016-07-14 20:08:20 +10:00
e107cee304
example: Brighten the links a bit 2016-03-13 08:26:19 +10:00
ccd08db986
example: Update example template and styling. 2016-03-13 08:16:19 +10:00
13b581fcc7
Expose the number of workers to the config file.
We default to the number of CPU cores, but this allows a fixed value to
be configured.
2016-03-06 17:37:35 +10:00
fa4de0bbc3
Permit limiting the number of posts. 2016-03-06 17:06:54 +10:00
0d5546abd4
If read fails, fall back to cache.
We can probably factor this a bit better so we're not repeating
ourselves, but in essence, if we have an older version we can put up
instead, we'll use that.
2016-03-06 16:54:55 +10:00
16ad2d14e1
Fix handling of 'content' 2016-03-06 16:49:20 +10:00
10f2c56945
Initial check-in of Tornado News 2016-03-06 14:58:34 +10:00