Changeset 573
- Timestamp:
- 04/11/06 15:50:03
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/CustomFeed/Mixi.pm
r477 r573 7 7 use WWW::Mixi; 8 8 use Time::HiRes; 9 use URI; 9 10 10 11 our $MAP = { … … 68 69 my $response = $self->{mixi}->get($start_url); 69 70 71 my $next_url = URI->new($start_url)->path; 72 70 73 if ($response->content =~ /action=login\.pl/) { 71 74 $context->log(debug => "Cookie not found. Logging in"); 72 75 $response = $self->{mixi}->post("http://mixi.jp/login.pl", { 73 next_url => "/new_friend_diary.pl",76 next_url => $next_url, 74 77 email => $self->conf->{email}, 75 78 password => $self->conf->{password}, … … 151 154 if ($item) { 152 155 my $body = decode('euc-jp', $item->{description}); 153 $body =~ s!\ n!<br />!g;156 $body =~ s!\r\n?!<br />!g; 154 157 for my $image (@{ $item->{images} }) { 155 158 # xxx this should be $entry->enclosures
