line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Part of get-flash-videos. See get_flash_videos for copyright. |
2
|
|
|
|
|
|
|
package FlashVideo::VideoPreferences; |
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
21296
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
64
|
|
5
|
2
|
|
|
2
|
|
1016
|
use FlashVideo::VideoPreferences::Quality; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
53
|
|
6
|
2
|
|
|
2
|
|
1080
|
use FlashVideo::VideoPreferences::Account; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
345
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new { |
9
|
1
|
|
|
1
|
0
|
15
|
my($class, %opt) = @_; |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
50
|
|
|
15
|
return bless { |
|
|
|
50
|
|
|
|
|
12
|
|
|
|
|
|
|
quality => $opt{quality} || "high", |
13
|
|
|
|
|
|
|
subtitles => $opt{subtitles} || 0, |
14
|
|
|
|
|
|
|
}, $class; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub quality { |
18
|
1
|
|
|
1
|
0
|
444
|
my($self) = @_; |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
|
|
12
|
return FlashVideo::VideoPreferences::Quality->new($self->{quality}); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub subtitles { |
24
|
0
|
|
|
0
|
0
|
|
my($self) = @_; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
return $self->{subtitles}; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub account { |
30
|
0
|
|
|
0
|
0
|
|
my($self, $site, $prompt) = @_; |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
|
|
|
return FlashVideo::VideoPreferences::Account->new($site, $prompt); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |