Mercurial > hg > egg-tcls
diff fetch_feeds.tcl @ 484:35d7be5db18b
fetch_feeds: Move the actual calling of fetching functions to the
configuration file config.feeds as a callback function, which is
run by fetch_feeds.tcl
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 29 Oct 2019 15:29:15 +0200 |
parents | 057e399d86f6 |
children | 4656f4fd0aa9 |
line wrap: on
line diff
--- a/fetch_feeds.tcl Tue Oct 29 15:18:47 2019 +0200 +++ b/fetch_feeds.tcl Tue Oct 29 15:29:15 2019 +0200 @@ -223,15 +223,11 @@ ### Fetch the feeds -#fetch_poliisi "http://www.poliisi.fi/oulu/tiedotteet/1/0?all1/0" "Poliisi/Oulu" "http://www.poliisi.fi" - -fetch_halla_aho - -fetch_adventurers - -fetch_oots - -add_rss_feed "https://effi.org/feed/" "EFFI" "" +if {[catch {feeds_fetch} uerrmsg]} { + puts "Error fetching feeds: $uerrmsg" + feeds_db close + exit 3 +} ### Close database