From eaecac1ec037580def8faa5f4f680acd8a68d953 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Wed, 27 May 2015 17:02:41 +1000 Subject: [PATCH] * some tweaks --- twatch-lite | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twatch-lite b/twatch-lite index 2167520..5855313 100755 --- a/twatch-lite +++ b/twatch-lite @@ -71,7 +71,7 @@ sub load_config { _log(fatal => "Empty 'matches' section in feed") unless (scalar @{ $feed->{matches} }); - foreach my $key (qw(type use lookup)) { + foreach my $key (qw(use lookup)) { $feed->{$key} //= $config->{defaults}->{$key}; } # TODO: more @@ -144,6 +144,7 @@ sub process_feed { # gotcha! my $msg = sprintf "Got it! URL: %s (%s)", $entry->link, $entry->title; _log(info => $msg); + # TODO: handle 'use' feed option $urls->{$entry->link} = $entry->title; } $feedconf->{lastseen} = $time;