-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathHTTP.pm
More file actions
31 lines (24 loc) · 762 Bytes
/
Copy pathHTTP.pm
File metadata and controls
31 lines (24 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package Plugins::SqueezeSonic::HTTP;
use base qw(Plugins::SqueezeSonic::ProtocolHandler Slim::Player::Protocols::HTTP);
use Slim::Utils::Log;
my $log = logger('plugin.squeezesonic');
sub new {
my $class = shift;
my $args = shift;
my $client = $args->{client};
my $song = $args->{song};
my $streamUrl = $song->streamUrl() || return;
my $mime = $song->pluginData('mime');
my $sock = $class->SUPER::new( {
url => $streamUrl,
song => $song,
client => $client,
bitrate => $song->bitrate(),
} ) || return;
${*$sock}{contentType} = $mime;
return $sock;
}
sub canDirectStreamSong {
return 0;
}
1;