Author: agrundman
Date: Wed Jun 9 12:21:31 2010
New Revision: 8851
URL: http://svn.slimdevices.com/jive?rev=8851&view=rev
Log:
Fix bug where radio icon didn't work for remote tracks because pattern match
didn't check for a negative id
Modified:
7.6/trunk/squeezeplay/src/squeezeplay/share/jive/slim/SlimServer.lua
Modified: 7.6/trunk/squeezeplay/src/squeezeplay/share/jive/slim/SlimServer.lua
URL:
http://svn.slimdevices.com/jive/7.6/trunk/squeezeplay/src/squeezeplay/share/jive/slim/SlimServer.lua?rev=8851&r1=8850&r2=8851&view=diff
==============================================================================
--- 7.6/trunk/squeezeplay/src/squeezeplay/share/jive/slim/SlimServer.lua
(original)
+++ 7.6/trunk/squeezeplay/src/squeezeplay/share/jive/slim/SlimServer.lua Wed
Jun 9 12:21:31 2010
@@ -1078,8 +1078,8 @@
local resizeFrag = '_' .. sizeW .. 'x' .. sizeH .. '_m'
local url
- if string.match(iconId, "^%x+$") then
- -- if the iconId is a hex digit, this is cover art
+ if string.match(iconId, "^[%x%-]+$") then
+ -- if the iconId is a hex digit, this is a coverid or remote
track id (a negative id)
url = '/music/' .. iconId .. '/cover' .. resizeFrag
if imgFormat then
url = url .. "." .. imgFormat
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins