PDA

View Full Version : Re: help with skins and album art



Noah Zilberberg
2005-03-12, 14:12
Hey, thanks for the response...

yes, I'm using 5.4 and unfortunately will probably continue to do so as
there a few things about 6 which bother me just enough that for the time
being I'm sticking with the old version.

I am confused however. Though you say 5.4 has limited unicade support, how
does that explain the artwork being displayed correctly in every other
context? All artwork displays correctly when browsing by artwork, for
example. or in the status pane it displays correctly etc. The only time it
chokes is when I use my little hack...so I must be missing something. is
there a different way to access the artwork similar to the Browse Artwork
page?

Also a link to the patch you mentioned would be helpful :)



>From: kdf <slim-mail (AT) deane-freeman (DOT) com>
>Reply-To: Slim Devices Developers <developers (AT) lists (DOT) slimdevices.com>
>To: Slim Devices Developers <developers (AT) lists (DOT) slimdevices.com>
>Subject: Re: [Developers] help with skins and album art
>Date: Sat, 12 Mar 2005 12:52:48 -0800
>
>Quoting Noah Zilberberg <torgo02 (AT) hotmail (DOT) com>:
>
> > So I wanted to make the Fishbone skin display album art when I click an
> > artist to view the list of that artists albums. I added this code to the
>top
> > of my browseid3_list.html file
> >
> > [% IF album %][% IF descend %][% IF not song %]<td class="listing"
> > width="105">
> > <br>&nbsp;<a href="browseid3.html?song=[% song | uri %]&artist=[%
>artist |
> > uri %]&album=[% album | uri %]&genre=[% genre | uri %]&artwork=[%
>artwork
> > %]" target="browser"><img src="/music/file%3A///Volumes/HD500/music/[%
> > artist | uri %]/[% album | uri %]/*.mp3/cover.jpg" border="0"
>height="100"
> > width="100" alt="[% item | html %] onMouseOver="self.status=&quot;[%
>item |
> > html %]&quot;;return true;"></a><br><br>
> > </td>[% END %][% END %][% END %]
> >
> > this works almost perfectly with two exceptions.
> >
> > First, and most importantly, the art for any album name that has unusual
> > characters (like slashes, umlauts, etc) will not be displayed. This
>seems
> > strange because the art for those albums WILL be displayed if I'm
>browsing
> > by artwork or if I click the album to see the song view, so I know
> > slimserver is capable of displaying those files.
>
>since you are using browseid3, I must assume you are also useing slimserver
>5.4.x. Unicode (special character) support is very limited in 5.4 so you
>are
>unlikely to see much better than this. If you want to try 6.0b1, you would
>use
>browsedb_list.html and you should have much better unicode support. There
>are
>still a few issues, but all the developers are hard at work on fixing them.
>
> >
> > Second, the code above the section that says "<img
> > src="/music/file%3A///Volumes/HD500/music/" is hard coded for my
> > computer...not so much a problem until I want to pass the skin on to
>someone
> > else. How do I make that more dynamic?
> >.
>
>That becomes a lot more tricky than it sounds. I most cases, you can use
>something like [% itempath %], but only when that actually points to an mp3
>file that you want to use. Album and Artists lists don't really do this
>(yet).
> A user supplied a patch a while back that added artwork to album and
>artists
>listings, but it was for 5.4 and didn't translate well into 6.0's new API.
>It
>would be great to see something like that again. It basically showed
>60pixel
>versions of the album art down the left side of every listing. In cases
>where
>the album was redundant, it seemed to just pick one at random, which was
>fine.
>
>-kdf
>

kdf
2005-03-12, 14:25
Quoting Noah Zilberberg <torgo02 (AT) hotmail (DOT) com>:

> Hey, thanks for the response...
>
> yes, I'm using 5.4 and unfortunately will probably continue to do so as
> there a few things about 6 which bother me just enough that for the time
> being I'm sticking with the old version.

ok.

> I am confused however. Though you say 5.4 has limited unicade support, how
> does that explain the artwork being displayed correctly in every other
> context? All artwork displays correctly when browsing by artwork, for
> example. or in the status pane it displays correctly etc. The only time it
> chokes is when I use my little hack...so I must be missing something. is
> there a different way to access the artwork similar to the Browse Artwork
> page?

I guess I misread your original post a bit. To be honest, I haven't run or ever
mroe than barely look at 5.4 code in many weeks. The browse artwork is an
unfortunate hack, and I wish I had never done it. It uses its own hash created
while scanning, to take one track from each album. We can then look at those
tracks to grab info, since an album title only has one bit of information:
title. There are many ways that hash can get messed up. Thankfully Dan has
been doing a great job of cleaning those up with 6.0

what are you seeing in the browser source when an album doesnt' show art? you
can also try turning on d_http and d_artwork to get some idea of what the
server looks for. Running the server from command line is the best way to do
this.

> Also a link to the patch you mentioned would be helpful :)


http://lists.slimdevices.com/archives/discuss/2005-January/041018.html

-kdf