mherger wrote:
> > Ah! Thanks for looking into this, I have no items that would match
>
> Woah... this was indeed a LMS bug, un-discovered for seven years :-D.
Perhaps this is related? When I issue the following command:
Code:
--------------------
curl 'http://192.168.0.100:9000/jsonrpc.js' --data
'{"id":1,"method":"slim.request","params":["", ["albums", 0, 5, "tags:CCZs"]]}'
--------------------
I receive the following:
Code:
--------------------
{"id":1,"method":"slim.request","result":{"albums_loop":[{"id":7482,"textkey":""},{"id":6935,"textkey":"+"},{"id":7316,"textkey":"1"},{"id":7276,"textkey":"1"},{"id":7390,"textkey":"1"}],"indexList":[[null,1],["÷",1],["+",1],["1",7],["2",5],["3",2],["5",1],["7",3],["A",38],["B",63],["C",38],["D",30],["E",27],["F",23],["G",28],["H",33],["I",33],["J",9],["K",15],["L",36],["M",34],["N",47],["O",21],["P",43],["Q",1],["R",33],["S",79],["T",36],["U",17],["V",16],["W",27],["X",3],["Y",2],["Z",1]],"count":754},"params":["",["albums","0",5,"tags:CCZs"]]}
--------------------
The first text key is an empty string, and the first two entries in
indexList are invalid. If I do:
Code:
--------------------
curl 'http://192.168.0.100:9000/jsonrpc.js' --data
'{"id":1,"method":"slim.request","params":["", ["albums", 0, 5]]}'
--------------------
I get
Code:
--------------------
{"id":1,"result":{"count":754,"albums_loop":[{"album":"No
Album","id":7482},{"album":"+","id":6935},{"album":"1","id":7316},{"album":"1000
Forms Of Fear","id":7276},{"id":7390,"album":"100 Hits - Girls
Night"}]},"params":["",["albums","0","5"]],"method":"slim.request"}
--------------------
Now I have no idea where "No Album" is coming from. I have code to skip
this (in the general album listing) - as when I left it in it has
"Various Artists" as the album artist, but there are no tracks. Most
odd.
But even accounting for that weird non-album, the indexList's 3rd entry
is -+- which is the second entry in the above list. I don't understand
why they don't match up.
Is this another LMS error? The current indexList handing code skips over
the album with the empty textKey (I assume this is the "No Album")
Anyway I can get LMS to not create this "No Album"???
------------------------------------------------------------------------
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
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins