Show
Ignore:
Timestamp:
09/02/08 22:10:25 (4 months ago)
Author:
sweetpotato
Message:

- shop_melonbooks_co_jp_tsuhan.pl: added
- www_taiyosha_co_jp_comic.pl: trivial change
- www_toranoana_jp_mailorder.pl: added

Location:
lang/perl/plagger/assets/plugins/CustomFeed-Script
Files:
2 added
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/plagger/assets/plugins/CustomFeed-Script/www_taiyosha_co_jp_comic.pl

    r18658 r18665  
    1616    process '//table[./tr/th]/tr[not(./th)]', 'entry[]' => scraper { 
    1717        process '/tr/td[1]', 
    18                 part => ['text', sub { m!/(.*?)$! or return; $1 } ], 
    19                 date => ['text', sub { m!/(.*?)$! or return; $1 }, \&mk_date]; 
     18            part => ['text', sub { m!/(.*?)$! or return; $1 } ], 
     19            date => ['text', sub { m!/(.*?)$! or return; $1 }, \&mk_date]; 
    2020        process '/tr/td[2]', 
    21                 publisher => 'text', 
    22                 'tags[]'  => 'text'; 
     21            publisher => 'text', 
     22            'tags[]'  => 'text'; 
    2323        process '/tr/td[3]', title  => 'text'; 
    2424        process '/tr/td[4]', author => 'text'; 
     
    5151my $dt_title = $dt->strftime('%Y/%m分'); 
    5252binmode STDOUT, ":utf8"; 
    53 print YAML::Dump +{ 
     53print Dump +{ 
    5454    title => "太洋社 コミック発売予定一覧 $dt_title", 
    5555    link  => "http://www.taiyosha.co.jp/comic/comic${dt_path}_date1.html", 
     
    5858 
    5959sub mk_date { 
    60     my $part = shift; 
    61     return unless defined $part; 
     60    return unless defined $_; 
    6261 
    6362    my $date = $dt->clone; 
    64     return unless eval { $date->set(day => part_to_day($part)) }; 
     63    return unless eval { $date->set(day => part_to_day($_)) }; 
    6564    $date->ymd; 
    6665} 
    6766 
    6867sub part_to_day { 
    69         my $part = shift; 
     68    my $part = shift; 
    7069    return unless defined $part; 
    7170