{{$NEXT}}
+ - Code updated for Mojo:UserAgent 4.X
+
+0.03 2012-12-26 00:47:20 Europe/Madrid
+
- Retrieve episode link by type (magnet, torrent, direct).
0.02 2012-12-26 00:06:54 Europe/Madrid
my $link = $tr->at('td:nth-child(1) a');
WWW::EZTV::Show->new(
title => $link->all_text,
- url => $self->url->clone->path($link->attrs('href')),
+ url => $self->url->clone->path($link->attr('href')),
status => lc($tr->at('td:nth-child(2)')->all_text),
rating => $tr->at('td:nth-child(3)')->all_text
);
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