line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Part of get-flash-videos. See get_flash_videos for copyright. |
2
|
|
|
|
|
|
|
package FlashVideo::Site; |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
20
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
524
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# Various accessors to avoid plugins needing to know about the exact command |
7
|
|
|
|
|
|
|
# line options. This will improve at some point (i.e. more OO) |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub debug { |
10
|
0
|
|
|
0
|
0
|
|
$App::get_flash_videos::opt{debug}; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub action { |
14
|
0
|
0
|
|
0
|
0
|
|
$App::get_flash_videos::opt{play} ? "play" : "download"; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub player { |
18
|
0
|
|
|
0
|
0
|
|
$App::get_flash_videos::opt{player}; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub yes { |
22
|
0
|
|
|
0
|
0
|
|
$App::get_flash_videos::opt{yes}; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub quiet { |
26
|
0
|
|
|
0
|
0
|
|
$App::get_flash_videos::opt{quiet}; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |