Author: andy
Date: Thu Jan 17 13:54:24 2008
New Revision: 1491
URL: http://svn.slimdevices.com?rev=1491&root=Jive&view=rev
Log:
Patch to Now Playing to fetch cover art directly as a URL when on SN
Modified:
trunk/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
Modified: trunk/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
URL:
http://svn.slimdevices.com/trunk/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua?rev=1491&root=Jive&r1=1490&r2=1491&view=diff
==============================================================================
--- trunk/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua
(original)
+++ trunk/jive/src/pkg/jive/share/applets/NowPlaying/NowPlayingApplet.lua Thu
Jan 17 13:54:24 2008
@@ -142,7 +142,14 @@
if remoteContent then
server:fetchArtworkURL(item["icon"], icon, ARTWORK_SIZE)
else
- server:fetchArtworkThumb(item["icon"], icon,
_staticArtworkThumbUri, ARTWORK_SIZE)
+ if server:isSqueezeNetwork() then
+ -- Artwork on SN must be fetched as a normal URL
+ local ip, port = server:getIpPort()
+ item["icon"] = 'http://' .. ip .. ':' .. port
.. '/' .. item["icon"]
+ server:fetchArtworkURL(item["icon"], icon,
ARTWORK_SIZE)
+ else
+ server:fetchArtworkThumb(item["icon"], icon,
_staticArtworkThumbUri, ARTWORK_SIZE)
+ end
end
elseif item and item["params"] and item["params"]["track_id"] then
-- this is for the radio image-- remote URLs with no icon (Bug
6087)
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins