From 2c79ec538bb42e21cd2b73f5424775a35474f99e Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Wed, 10 Jun 2015 22:04:13 +1000 Subject: [PATCH] * add note about 'linktype' option * change default handling for 'lookup' option --- twatch-lite | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/twatch-lite b/twatch-lite index a20f76d..bd40300 100755 --- a/twatch-lite +++ b/twatch-lite @@ -126,9 +126,9 @@ sub process_feed { _log(debug => "Already seen before: $time"); next; } - my $text = ($feedconf->{lookup} eq 'title') - ? $entry->title - : $entry->content->body; + my $text = ($feedconf->{lookup} eq 'body') + ? $entry->content->body + : $entry->title; _log(info => "Processing: " . $entry->title); _log(debug => "Match text is: ". $text); foreach my $match (@{ $feedconf->{matches} }) { @@ -299,7 +299,7 @@ Lookup this field in RSS/ATOM entry for wanted keywords. Acceptable values: 'bod Type of link in RSS/ATOM entry. Possible values: * direct -- link points directly to torrent file (default) -* page -- link points to page with link to torrent file +* page -- link points to page with link to torrent file (not implemented yet) =head1 SEE ALSO