projects
/
cascardo
/
www-eztv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change attrs() for attr() to work with mojo::ua 4.x
[cascardo/www-eztv.git]
/
lib
/
WWW
/
EZTV
/
Show.pm
diff --git
a/lib/WWW/EZTV/Show.pm
b/lib/WWW/EZTV/Show.pm
index
7ab346b
..
f9c994e
100644
(file)
--- 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(
my $a = $tr->at('td:nth-child(2) a');
WWW::EZTV::Episode->new(
- title => $a->attr
s
('title'),
- url => $self->url->clone->path($a->attr
s
('href')),
+ title => $a->attr('title'),
+ url => $self->url->clone->path($a->attr('href')),
links => $tr->find('td:nth-child(3) a')->map(sub{
links => $tr->find('td:nth-child(3) a')->map(sub{
- WWW::EZTV::Link->new( url => shift->attr
s
('href') )
+ WWW::EZTV::Link->new( url => shift->attr('href') )
}),
released => $tr->at('td:nth-child(4)')->all_text,
show => $self
}),
released => $tr->at('td:nth-child(4)')->all_text,
show => $self