Changeset 2045

Show
Ignore:
Timestamp:
10/18/08 09:29:17
Author:
otsune
Message:
  • test followed update of XML::RSS::LibXML

Add kzys's plugin Filter::FlickrContactPhotos? from http://gist.github.com/10849 (via http://blog.8-p.info/2008/118 )
Because Flickr::API returns gzipped response. (via http://gist.github.com/10830 )

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/CustomFeed/FlickrSearch.pm

    r896 r2045  
    5252    $context->error("$method failed: $search->{error_text}") 
    5353      unless $search->{success}; 
    54     my $search_doc = $parser->parse_string($search->{_content}); 
     54    my $search_doc = $parser->parse_string($search->decoded_content); 
    5555 
    5656    foreach my $search_photo ( $search_doc->findnodes('/rsp/photos/photo') ) { 
     
    8282    next unless $info->{success}; 
    8383 
    84     my $info_doc = $parser->parse_string($info->{_content}); 
     84    my $info_doc = $parser->parse_string($info->decoded_content); 
    8585    my $link     = $info_doc->findvalue(q[/rsp/photo/urls/url[@type='photopage']]); 
    8686    my $author   = $info_doc->findvalue(q[/rsp/photo/owner/@realname]) 
  • trunk/plagger/t/samples/scraper-args.pl

    r1717 r2045  
    66my($title, $desc) = @ARGV; 
    77 
    8 my $rss = XML::RSS::LibXML->new
     8my $rss = XML::RSS::LibXML->new(version => '1.0')
    99$rss->channel(title => $title, link => "http://example.com/", description => $desc); 
    1010print $rss->as_string; 
  • trunk/plagger/t/samples/scraper.pl

    r1717 r2045  
    44use XML::RSS::LibXML; 
    55 
    6 my $rss = XML::RSS::LibXML->new
     6my $rss = XML::RSS::LibXML->new(version => '1.0')
    77$rss->channel(title => "Foo Bar", link => "http://example.com/"); 
    88$rss->add_item(