line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package TMDB; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
####################### |
4
|
|
|
|
|
|
|
# LOAD MODULES |
5
|
|
|
|
|
|
|
####################### |
6
|
1
|
|
|
1
|
|
752
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
7
|
1
|
|
|
1
|
|
3
|
use warnings FATAL => 'all'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
43
|
|
8
|
1
|
|
|
1
|
|
11
|
use Carp qw(croak carp); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
79
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
####################### |
11
|
|
|
|
|
|
|
# VERSION |
12
|
|
|
|
|
|
|
####################### |
13
|
|
|
|
|
|
|
our $VERSION = '1.2.1'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
####################### |
16
|
|
|
|
|
|
|
# LOAD CPAN MODULES |
17
|
|
|
|
|
|
|
####################### |
18
|
1
|
|
|
1
|
|
437
|
use Object::Tiny qw(session); |
|
1
|
|
|
|
|
288
|
|
|
1
|
|
|
|
|
4
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
####################### |
21
|
|
|
|
|
|
|
# LOAD DIST MODULES |
22
|
|
|
|
|
|
|
####################### |
23
|
1
|
|
|
1
|
|
427
|
use TMDB::Genre; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
26
|
|
24
|
1
|
|
|
1
|
|
417
|
use TMDB::Movie; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
11
|
|
25
|
1
|
|
|
1
|
|
440
|
use TMDB::TV; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
26
|
1
|
|
|
1
|
|
361
|
use TMDB::Config; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
27
|
1
|
|
|
1
|
|
360
|
use TMDB::Person; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
28
|
1
|
|
|
1
|
|
336
|
use TMDB::Search; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
29
|
1
|
|
|
1
|
|
315
|
use TMDB::Company; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
30
|
1
|
|
|
1
|
|
22
|
use TMDB::Session; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
2
|
|
31
|
1
|
|
|
1
|
|
309
|
use TMDB::Collection; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
####################### |
34
|
|
|
|
|
|
|
# PUBLIC METHODS |
35
|
|
|
|
|
|
|
####################### |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
## ==================== |
38
|
|
|
|
|
|
|
## CONSTRUCTOR |
39
|
|
|
|
|
|
|
## ==================== |
40
|
|
|
|
|
|
|
sub new { |
41
|
0
|
|
|
0
|
0
|
|
my ( $class, @args ) = @_; |
42
|
0
|
|
|
|
|
|
my $self = {}; |
43
|
0
|
|
|
|
|
|
bless $self, $class; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
# Init Session |
46
|
0
|
|
|
|
|
|
$self->{session} = TMDB::Session->new(@args); |
47
|
0
|
|
|
|
|
|
return $self; |
48
|
|
|
|
|
|
|
} ## end sub new |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
## ==================== |
51
|
|
|
|
|
|
|
## TMDB OBJECTS |
52
|
|
|
|
|
|
|
## ==================== |
53
|
|
|
|
|
|
|
sub collection { |
54
|
0
|
|
|
0
|
0
|
|
return TMDB::Collection->new( |
55
|
|
|
|
|
|
|
session => shift->session, |
56
|
|
|
|
|
|
|
@_ |
57
|
|
|
|
|
|
|
); |
58
|
|
|
|
|
|
|
} ## end sub collection |
59
|
0
|
|
|
0
|
0
|
|
sub company { return TMDB::Company->new( session => shift->session, @_ ); } |
60
|
0
|
|
|
0
|
0
|
|
sub config { return TMDB::Config->new( session => shift->session, @_ ); } |
61
|
0
|
|
|
0
|
0
|
|
sub genre { return TMDB::Genre->new( session => shift->session, @_ ); } |
62
|
0
|
|
|
0
|
0
|
|
sub movie { return TMDB::Movie->new( session => shift->session, @_ ); } |
63
|
0
|
|
|
0
|
0
|
|
sub tv { return TMDB::TV->new( session => shift->session, @_ ); } |
64
|
0
|
|
|
0
|
0
|
|
sub person { return TMDB::Person->new( session => shift->session, @_ ); } |
65
|
0
|
|
|
0
|
0
|
|
sub search { return TMDB::Search->new( session => shift->session, @_ ); } |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
####################### |
68
|
|
|
|
|
|
|
1; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
__END__ |