[Slim-Checkins] r12776 - in /trunk/server: HTML/EN/html/images/radio.png Slim/Web/Graphics.pm
adrian at svn.slimdevices.com
adrian at svn.slimdevices.com
Wed Aug 29 06:12:30 PDT 2007
Author: adrian
Date: Wed Aug 29 06:12:29 2007
New Revision: 12776
URL: http://svn.slimdevices.com?rev=12776&view=rev
Log:
Bug: N/A
Description: alternative default artwork for remote stations
Added:
trunk/server/HTML/EN/html/images/radio.png (with props)
Modified:
trunk/server/Slim/Web/Graphics.pm
Added: trunk/server/HTML/EN/html/images/radio.png
URL: http://svn.slimdevices.com/trunk/server/HTML/EN/html/images/radio.png?rev=12776&view=auto
==============================================================================
Binary file - no diff available.
Propchange: trunk/server/HTML/EN/html/images/radio.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Modified: trunk/server/Slim/Web/Graphics.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Web/Graphics.pm?rev=12776&r1=12775&r2=12776&view=diff
==============================================================================
--- trunk/server/Slim/Web/Graphics.pm (original)
+++ trunk/server/Slim/Web/Graphics.pm Wed Aug 29 06:12:29 2007
@@ -108,16 +108,18 @@
}
unless ($cachedImage || $imageData) {
+
+ my $image = blessed($obj) && $obj->remote ? 'radio' : 'cover';
$log->info(" missing artwork replaced by placeholder.");
- $cacheKey = "BLANK-$resizeMode-$requestedWidth-$requestedHeight-$requestedBackColour";
+ $cacheKey = "$image-$resizeMode-$requestedWidth-$requestedHeight-$requestedBackColour";
$cachedImage = $cache->get($cacheKey);
unless ($cachedImage) {
- ($body, $mtime, $inode, $size) = Slim::Web::HTTP::getStaticContent("html/images/cover.png");
+ ($body, $mtime, $inode, $size) = Slim::Web::HTTP::getStaticContent("html/images/$image.png");
$contentType = "image/png";
$imageData = $$body;
}
More information about the checkins
mailing list