plexinc-plugins/Spotify.bundle — Issue #20:  Non-ios devices cannot handle bonjour name in redirect.
Author: darrin
Created: 2011-12-23 04:39:35+00:00
State: open

Here is the redirect:

GET /music/spotify/:/function/play_track.aiff?function_args=Y2VyZWFsMQoxCmRpY3QKMQpzMzYKc3BvdGlmeTp0cmFjazo2QTZxQkZKSGlkNFd1dFF1NkhIRVp0czMKdXJpcjAK HTTP/1.1
User-Agent: GTVMediaPlayer/1.0 (X11; U; Linux i686; en-US) GoogleTV
Host: 192.168.1.5:32400
Accept: */*

HTTP/1.0 301 Moved Permanently
Content-Length: 0
Location: http://gonzales.local:32420/track/c3BvdGlmeTp0cmFjazo2QTZxQkZKSGlkNFd1dFF1NkhIRVp0.aiff
X-Plex-Protocol: 1.0

--

Redirect needs to use the IP address... or hostname from the Host header of the request.

So the redirect above should be sent to:
http://192.168.1.5:32420/track/c3BvdGlmeTp0cmFjazo2QTZxQkZKSGlkNFd1dFF1NkhIRVp0.aiff

(Note the Host field in the request: Host: 192.168.1.5:32400).