Changeset 2056

Show
Ignore:
Timestamp:
12/18/08 09:03:52
Author:
otsune
Message:

* Update API domain
* Add meta hash (via http://0-9.sakura.ne.jp/blog/archives/2008/09/15180112.html )

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Filter/Delicious.pm

    r1945 r2056  
    2222 
    2323    my $md5  = md5_hex($args->{entry}->permalink); 
    24     my $url = "http://badges.del.icio.us/feeds/json/url/data?hash=$md5"; 
     24    my $url = "http://feeds.delicious.com/feeds/json/url/data?hash=$md5"; 
    2525 
    2626    $self->log(info => "Going to fetch $url"); 
     
    4949    $args->{entry}->meta->{delicious_rate} = rate_of_color($delicious_users); 
    5050    $args->{entry}->meta->{delicious_users} = $delicious_users; 
     51    $args->{entry}->meta->{delicious_hash} = $h->{hash}; 
    5152    $self->log(info => "set delicious_users to $delicious_users"); 
    5253} 
     
    8889=head1 SEE ALSO 
    8990 
    90 L<Plagger>, L<http://del.icio.us/help/>, L<http://del.icio.us/help/json/url> 
     91L<Plagger>, L<http://delicious.com/help/api> 
     92L<http://delicious.com/help/feeds/>, L<http://delicious.com/help/html> 
    9193 
    9294=cut