When I retrieve the cover art using thumb.jpg, sometimes I get back the thumbnail image (100x100) and sometimes I get back the full sized image
This happens with both my own code or with internet explorer making the access.
The IE request looks like :
http://192.168.1.207:9000/music/1500/thumb.jpg
Once it locks onto the bigger image it always seems to stay there.
Since it is ranmdom like that I guess I should assume it is a bug and hop over to Bugzilla town.
Any one have any additional info ?
Results 1 to 6 of 6
Thread: Retrieving Cover Art over TCPIP
-
2007-10-25, 22:36 #1
- Join Date
- Sep 2006
- Posts
- 200
Retrieving Cover Art over TCPIP
Last edited by barrygordon; 2007-10-25 at 22:39.
-
2007-10-25, 23:10 #2
Retrieving Cover Art over TCPIP
> When I retrieve the cover art using thumb.jpg, sometimes I get back the
> thumbnail image (100x100) and sometimes I get back the full sized
> image
thumb.jpg is imho legacy. Please use cover_XxY.jpg instead if you want
smaller artwork. Please see the "Server side resizing" part of that doc:
http://wiki.slimdevices.com/index.cgi?AlbumArtwork
--
Michael
-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR
-
2007-10-26, 18:27 #3
- Join Date
- Sep 2006
- Posts
- 200
Thanks Michael, that solved the problem. Perhaps you would be as kind as to answer another question.
It seems that the driver for the http request for cover art is trackID. I am looking at an application (first level music selection) where I have albumID not trackId. Is there any way to request cover art based on albumid or do I first have to get the trackid of a song on that album? if the latter bummer, after all album art is really album centric!
-
2007-10-26, 18:59 #4
Retrieving Cover Art over TCPIP
On 26-Oct-07, at 6:27 PM, barrygordon wrote:
>
> It seems that the driver for the http request for cover art is
> trackID.
> I am looking at an application (first level music selection) where I
> have albumID not trackId.
There is a member of the album object, artwork, that holds the ID of
the track used for cover art. Usually this is track 1.
if you are following CLI standards, it's the 'j' tag that returns the
artwork_track_id for the album query.
Unfortunately, I'm not sure how you would do this directly over tcpip.
-kdf
-
2007-10-26, 21:17 #5
- Join Date
- Sep 2006
- Posts
- 200
I hear you and will check it out, but in the CLI documentation they indicate that the tag j is a 1 or 0 indicating if there is cover art available. Let you know what I find. Thanks.
-
2007-10-27, 15:25 #6
- Join Date
- Sep 2006
- Posts
- 200
KDF, Thanks, I was reading the wrong piece of the API. It is there and just what I needed.