bpa,

thanks for your restless support! I didn't follow all of this thread. What exactly is the content-type value which does not mach the existing regex?

Michael


Am 17.04.16 um 11:53 schrieb bpa:

I think the problem is this change

https://github.com/Logitech/slimserver/commit/d558176ec04c3a96092d858538180385a015dde7

To see if I'm right can you try to change the line in red the file
Slim/Player/Protocols/HTTP.pm - the original line is commented above
it.


Code:
--------------------

   sub parseDirectHeaders {
        my ( $self, $client, $url, @headers ) = @_;
        
        my $isDebug = main::DEBUGLOG && $directlog->is_debug;
        
        # May get a track object
        if ( blessed($url) ) {
                $url = $url->url;
        }
        
        my ($title, $bitrate, $metaint, $redir, $contentType, $length, $body);
        my ($rangeLength, $startOffset);
        
        foreach my $header (@headers) {
        
                # Tidy up header to make no stray nulls or \n have been left by 
caller.
                $header =~ s/[\0]*$//;
                $header =~ s/\r/\n/g;
                $header =~ s/\n\n/\n/g;

                $isDebug && $directlog->debug("header-ds: $header");

                if ($header =~ /^(?:ic[ey]-name|x-audiocast-name):\s*(.+)/i) {
                        
                        $title = Slim::Utils::Unicode::utf8decode_guess($1);
                }
                
                elsif ($header =~ /^(?:icy-br|x-audiocast-bitrate):\s*(.+)/i) {
                        $bitrate = $1;
                        $bitrate *= 1000 if $bitrate < 1000;
                }
        
                elsif ($header =~ /^icy-metaint:\s*(.+)/i) {
                        $metaint = $1;
                }
        
                elsif ($header =~ /^Location:\s*(.*)/i) {
                        $redir = $1;
                }
                
   #            elsif ($header =~ /^Content-Type:\s*([^;]*)/i) {
                elsif ($header =~ /^Content-Type:\s*(.*)/i) {                   
                        $contentType = $1;
                }
   .
   .
   .

--------------------


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=105467

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta


--

Michael
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta

Reply via email to