slartibartfast wrote: 
> Strange things seem to happen when you choose a library view then choose
> "new music". Here is the debug info for one example where no results
> were returned.
> > 
Code:
--------------------
  >   > [12:52:31 PM] JSON REQ: ["",["libraries",0,25000]] material.min.js:96:69
  > [12:52:34 PM] JSON REQ: ["",["libraries",0,25000]] material.min.js:96:69
  > [12:52:45 PM] JSON REQ: 
["xx:xx:xx:xx:xx:xx",["albums",0,25000,"sort:new","wantMetadata:1","tags:ajlsyKSE","menu:1","library_id:30d1b034"]]
 material.min.js:96:69
  > [12:52:45 PM] JSON RESP: 
{"method":"slim.request","params":["xx:xx:xx:xx:xx:xx",["albums","0",25000,"sort:new","wantMetadata:1","tags:ajlsyKSE","menu:1","library_id:30d1b034"]],"result":{"count":100},"id":15}
 material.min.js:96:69
  > 
--------------------
> > 

I saw your posts in the other thread, and did a quick test - all appears
fine to me, or at least matches the default UI. What are you seeing that
you are not expecting, or vice versa? Have you tried with the default
web UI, before and after selecting a library?

As you can see from your debug, LMS says there are 100 items
(-{"count":100}-), but returns none. What I -think- is happening is that
LMS is getting the 100 newest albums, and then filtering out by library
- if none of these are in the chosen library, none are returned. Where
as it should filter by library, and then select the 100 newest from
that.

If a library is set in Material, it always passes that to LMS qhen
making calls.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.
------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=109624

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

Reply via email to