Changeset 944

Show
Ignore:
Timestamp:
06/09/06 17:37:37
Author:
miyagawa
Message:

* Handle own domain blog (livedoor Blog PRO) via http://subtech.g.hatena.ne.jp/otsune/20060609/livedoorpro
* Upgrade only if it contains "Read More" in the body. Fixes #213

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/assets/plugins/Filter-EntryFullText/livedoorblog.pl

    r481 r944  
    11sub handle_force { 
    22    my($self, $args) = @_; 
    3     $args->{entry}->link =~ qr!^http://(?:blog\.livedoor\.jp/|[\w\-]+\.livedoor\.biz/)!; 
     3    return ($args->{entry}->link =~ qr!^http://(?:blog\.livedoor\.jp/|[\w\-]+\.livedoor\.biz/)! 
     4             or 
     5            $args->{content} =~ m!trackback:ping="http://app\.blog\.livedoor\.jp/!) 
     6           and 
     7           $args->{entry}->body =~ m!<a href=".*?">\x{7D9A}\x{304D}\x{3092}\x{8AAD}\x{3080}</a>!; 
    48} 
    59