projects
/
cascardo
/
www-eztv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Retrive episode links by type and some more docs
[cascardo/www-eztv.git]
/
lib
/
WWW
/
EZTV.pm
diff --git
a/lib/WWW/EZTV.pm
b/lib/WWW/EZTV.pm
index
d2bde1f
..
2bf91dc
100644
(file)
--- a/
lib/WWW/EZTV.pm
+++ b/
lib/WWW/EZTV.pm
@@
-36,20
+36,24
@@
sub _build_shows {
=head1 SYNOPSIS
=head1 SYNOPSIS
-First create a WWW::EZTV object to navigate.
-
use WWW::EZTV;
use WWW::EZTV;
+ use v5.10;
my $eztv = WWW::EZTV->new;
my $eztv = WWW::EZTV->new;
+ # Find one show
my $show = $eztv->find_show(sub{ $_->name =~ /Walking dead/i });
my $show = $eztv->find_show(sub{ $_->name =~ /Walking dead/i });
+ # Find one episode
my $episode = $show->find_episode(sub{
$_->season == 3 &&
$_->number == 8 &&
$_->quality eq 'standard'
});
my $episode = $show->find_episode(sub{
$_->season == 3 &&
$_->number == 8 &&
$_->quality eq 'standard'
});
+ # Get first torrent url for this episode
+ say $episode->find_link(sub{ $_->type eq 'torrent' })->url;
+
=attr url
EZTV URL.
=attr url
EZTV URL.