wt0 wrote: 
> Just checked how the trackstat plugin worked again and I realized that
> what you want can't be done, at least not without slowing the app down
> to a crawl.  Basically the problem is that the trackstat plugin doesn't
> allow me to retrieve the ratings of multiple tracks in one request, I
> can only get them one track at a time.  This means that to retrieve the
> ratings for the entire playlist, I would have to make a separate request
> to the server for each track.

I'm not entirely certain, but I believe trackstat stores the values in a
separate table with the song ID. Wouldn't it be possible to query the DB
with a nested query, thus retreiving all data for the playlist at once?

Code:
--------------------
    SELECT column-names
  FROM table-name1
  WHERE value IN (SELECT column-name
  FROM table-name2 
  WHERE condition)
--------------------


This is just an idea, no clue if it's at all feasible with the way apps
should interface with LMS ...



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + iPeng (local playback activated) + NAD 312 + Teufel
Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Cyrus Soundkey +
Topping A30 + Focal Elear
Car: TBC ...
------------------------------------------------------------------------
bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=96757

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to