Changeset 103

Show
Ignore:
Timestamp:
04/23/06 22:28:39 (3 years ago)
Author:
miya
Message:

modify.

Files:

Legend:

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

    r102 r103  
    4646    while (<$fh>) { 
    4747        $_ = encode('euc-jp', $_); 
    48         m|<!-- ¡ü\d+yaji¡ü -->| 
     48        m/<!-- ¡ü\d+yaji¡ü -->|<P>/ 
    4949            and do { 
    5050                $flag = 1; 
     
    6464            and $entry->body(encode('utf-8', decode('euc-jp', $1))) if $flag == 1; 
    6565        m|<BR><DIV align=right><FONT size=-1>(.+)</FONT></DIV></P>| 
    66             and $entry->author(encode('utf-8', decode('euc-jp', $1))) if $flag == 1; 
     66            and do { 
     67                $entry->author(encode('utf-8', decode('euc-jp', $1))) if $flag == 1; 
     68                $feed->add_entry($entry) if $flag == 1; 
     69                $entry = ''; 
     70                $flag = 0; 
     71            }; 
    6772    } 
    6873    $context->update->add($feed);