X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fwww-eztv.git;a=blobdiff_plain;f=lib%2FWWW%2FEZTV%2FShow.pm;fp=lib%2FWWW%2FEZTV%2FShow.pm;h=f9c994e4b931294baad9ddf7acb79e86ae4a1660;hp=7ab346b774085744ae58952b647cbfbbeb390640;hb=072be1f99c866dce6919f6d8aead73bbdabbddf6;hpb=17802f254b869064461d14e6a2fb015b59246a46 diff --git a/lib/WWW/EZTV/Show.pm b/lib/WWW/EZTV/Show.pm index 7ab346b..f9c994e 100644 --- a/lib/WWW/EZTV/Show.pm +++ b/lib/WWW/EZTV/Show.pm @@ -28,10 +28,10 @@ sub _build_episodes { my $a = $tr->at('td:nth-child(2) a'); WWW::EZTV::Episode->new( - title => $a->attrs('title'), - url => $self->url->clone->path($a->attrs('href')), + title => $a->attr('title'), + url => $self->url->clone->path($a->attr('href')), links => $tr->find('td:nth-child(3) a')->map(sub{ - WWW::EZTV::Link->new( url => shift->attrs('href') ) + WWW::EZTV::Link->new( url => shift->attr('href') ) }), released => $tr->at('td:nth-child(4)')->all_text, show => $self