PDA

View Full Version : Patch for adding album art to listings



Matt Welsh
2005-01-03, 20:44
Hi all,

I made a quick patch to add album art to the HTML artist and album
listings in the SlimServer Web interface. (I use the Web interface for
everything when listening to my Squeezebox and was frustrated that I
couldn't see album art until clicking through to see a specific album,
or "Browse by Artwork", which is not really what I want.)
With this patch, when you are browsing by artist name or Genre,
a thumbnail of the album art, if available, will show up in the listing.

Note that in the "Browse by Artist" listing it shows the artwork
thumbnail for the first album with artwork for this artist. As a result
the page load can be pretty slow since a lot of thumbnails are loaded.
You can easily comment out this portion of the code which will only show
artwork thumbnails when viewing albums by a *particular* artist.

Here is the patch. To apply it, try "patch -p1 < PATCHFILE" in your
Slimserver toplevel directory. It only touches two files:
Slim/Web/Pages.pm and HTML/Default/browseid3_list.html.
(Adding the appropriate changes to other skins is easy to do.)

Matt Welsh

kdf
2005-01-06, 18:31
nice work!

I've only had time to do a quick test on a small library. How bad is the
performance hit at >15k tracks? or >12 items per page?

-kdf

Quoting Matt Welsh <mdw (AT) eecs (DOT) harvard.edu>:

> Hi all,
>
> I made a quick patch to add album art to the HTML artist and album
> listings in the SlimServer Web interface. (I use the Web interface for
> everything when listening to my Squeezebox and was frustrated that I
> couldn't see album art until clicking through to see a specific album,
> or "Browse by Artwork", which is not really what I want.)
> With this patch, when you are browsing by artist name or Genre,
> a thumbnail of the album art, if available, will show up in the listing.
>
> Note that in the "Browse by Artist" listing it shows the artwork
> thumbnail for the first album with artwork for this artist. As a result
> the page load can be pretty slow since a lot of thumbnails are loaded.
> You can easily comment out this portion of the code which will only show
> artwork thumbnails when viewing albums by a *particular* artist.
>
> Here is the patch. To apply it, try "patch -p1 < PATCHFILE" in your
> Slimserver toplevel directory. It only touches two files:
> Slim/Web/Pages.pm and HTML/Default/browseid3_list.html.
> (Adding the appropriate changes to other skins is easy to do.)
>
> Matt Welsh
>
>
>

Ian.Rothery
2005-01-21, 01:51
Matt,

I am computer literate but not programmer savy. Can you give a little more
help adding this patch to my slimserver. It sounds like a great idea and I
would love to use it.

Thanks,

Ian

----- Original Message -----
From: "Matt Welsh" <mdw (AT) eecs (DOT) harvard.edu>
To: <discuss (AT) lists (DOT) slimdevices.com>
Sent: Tuesday, January 04, 2005 3:44 AM
Subject: [slim] Patch for adding album art to listings


> Hi all,
>
> I made a quick patch to add album art to the HTML artist and album
> listings in the SlimServer Web interface. (I use the Web interface for
> everything when listening to my Squeezebox and was frustrated that I
> couldn't see album art until clicking through to see a specific album,
> or "Browse by Artwork", which is not really what I want.)
> With this patch, when you are browsing by artist name or Genre,
> a thumbnail of the album art, if available, will show up in the listing.
>
> Note that in the "Browse by Artist" listing it shows the artwork
> thumbnail for the first album with artwork for this artist. As a result
> the page load can be pretty slow since a lot of thumbnails are loaded.
> You can easily comment out this portion of the code which will only show
> artwork thumbnails when viewing albums by a *particular* artist.
>
> Here is the patch. To apply it, try "patch -p1 < PATCHFILE" in your
> Slimserver toplevel directory. It only touches two files:
> Slim/Web/Pages.pm and HTML/Default/browseid3_list.html.
> (Adding the appropriate changes to other skins is easy to do.)
>
> Matt Welsh
>
>
>


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


>

dbls
2005-01-21, 05:05
Can this patch be applied in Windows? If not, should a bug
(enhancement) be raised? This would be more useful than "Browse
by Artwork" in my view, especially as the number of CDs goes up
(as it tends to do!).

It *would* be nice to have artist thumbnails...would things
speed up if each artist folder had a thumbnail in it, e.g.
artist.jpg or similar?

-:- dbls

----- Original Message -----
From: "Matt Welsh" <mdw (AT) eecs (DOT) harvard.edu>
To: <discuss (AT) lists (DOT) slimdevices.com>
Sent: Monday, January 03, 2005 10:44 PM
Subject: [slim] Patch for adding album art to listings


> Hi all,
>
> I made a quick patch to add album art to the HTML artist and album
> listings in the SlimServer Web interface. (I use the Web interface for
> everything when listening to my Squeezebox and was frustrated that I
> couldn't see album art until clicking through to see a specific album,
> or "Browse by Artwork", which is not really what I want.)
> With this patch, when you are browsing by artist name or Genre,
> a thumbnail of the album art, if available, will show up in the listing.
>
> Note that in the "Browse by Artist" listing it shows the artwork
> thumbnail for the first album with artwork for this artist. As a result
> the page load can be pretty slow since a lot of thumbnails are loaded.
> You can easily comment out this portion of the code which will only show
> artwork thumbnails when viewing albums by a *particular* artist.
>
> Here is the patch. To apply it, try "patch -p1 < PATCHFILE" in your
> Slimserver toplevel directory. It only touches two files:
> Slim/Web/Pages.pm and HTML/Default/browseid3_list.html.
> (Adding the appropriate changes to other skins is easy to do.)
>
> Matt Welsh
>
>
>


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


>