Changeset 2059

Show
Ignore:
Timestamp:
01/08/09 21:42:43
Author:
charsbar
Message:

MixiScraper?: better subject for Log

Files:

Legend:

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

    r2027 r2059  
    7575      password => $self->conf->{password}, 
    7676      cookie_jar => $cookie_jar, 
     77      mode => $self->conf->{mode}, 
    7778    ); 
    7879 
     
    153154sub add_entry { 
    154155    my ($self, $context, $type, $feed, $msg) = @_; 
     156 
     157    if ($type eq 'Log') { 
     158        $msg->{subject} = $msg->{time} . ' ' . $msg->{name}; 
     159    } 
    155160 
    156161    my $entry = Plagger::Entry->new; 
     
    235240    } 
    236241 
     242require Data::Dump; 
     243warn Data::Dump::dump($entry); 
     244 
    237245    $feed->add_entry($entry); 
    238246    for my $comment ( @comments ) {