| 1 | 4 | ▶ | use 5.010; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 4 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package App::MP4Meta::Source::Base; | ||||||||||
| 6 | { | ||||||||||
| 7 | 4 | $App::MP4Meta::Source::Base::VERSION = '1.153340'; | |||||||||
| 8 | } | ||||||||||
| 9 | |||||||||||
| 10 | # ABSTRACT: Base class for sources | ||||||||||
| 11 | |||||||||||
| 12 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 13 | 0 | my $class = shift; | |||||||||
| 14 | 0 | my $args = shift; | |||||||||
| 15 | 0 | my $self = {}; | |||||||||
| 16 | |||||||||||
| 17 | # cache results | ||||||||||
| 18 | 0 | $self->{cache} = {}; | |||||||||
| 19 | 0 | $self->{banner_cache} = {}; | |||||||||
| 20 | |||||||||||
| 21 | 0 | bless( $self, $class ); | |||||||||
| 22 | 0 | return $self; | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 0 | ▶ | sub get_film { | ||||||||
|
Subroutine
get_film: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 26 | 0 | my ( $self, $args ) = @_; | |||||||||
| 27 | |||||||||||
| 28 | 0 | ▶ | die 'no title' unless $args->{title}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 0 | ▶ | sub get_tv_episode { | ||||||||
|
Subroutine
get_tv_episode: not called CC=4 SCAR=30.0
Pod
documented
| |||||||||||
| 32 | 0 | my ( $self, $args ) = @_; | |||||||||
| 33 | |||||||||||
| 34 | 0 | ▶ | die 'no title' unless $args->{show_title}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 35 | 0 | ▶ | die 'no season' unless $args->{season}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 36 | 0 | ▶ | die 'no episode' unless $args->{episode}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 37 | } | ||||||||||
| 38 | |||||||||||
| 39 | 4 | 1; | |||||||||
| 40 | |||||||||||
| 41 | __END__ | ||||||||||