/[Grep]/lib/Grep/Action/Fetch.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/Grep/Action/Fetch.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 18 by dpavlin, Sat Feb 17 23:32:33 2007 UTC revision 19 by dpavlin, Sun Feb 18 12:51:26 2007 UTC
# Line 65  sub take_action { Line 65  sub take_action {
65    
66          my $uri = $feed->uri;          my $uri = $feed->uri;
67          if ($uri =~ m/%s/) {          if ($uri =~ m/%s/) {
68                  $uri = sprintf( $uri, $self->argument_value('q') );                  $uri = $feed->search_uri( $self->argument_value('q') );
69                  Jifty->log->info("Searching ", $feed->title, " at $uri");                  Jifty->log->info("Searching ", $feed->title, " at $uri");
70          } else {          } else {
71                  Jifty->log->info("Fetching ", $feed->title, " at $uri");                  Jifty->log->info("Fetching ", $feed->title, " at $uri");
72          }          }
73    
74          my $xml_feed = XML::Feed->parse( URI->new($uri) )          my $xml_feed = XML::Feed->parse( URI->new($uri) )
75                  or die XML::Feed->errstr;                  or die $feed->title, " returned ", XML::Feed->errstr, " for $uri\n";
76    
77          warn "fetching ", $xml_feed->title, "\n";          warn "fetching ", $xml_feed->title, "\n";
78    

Legend:
Removed from v.18  
changed lines
  Added in v.19

  ViewVC Help
Powered by ViewVC 1.1.26