2011-12-20, 23:10
Mizaki Wrote:I see you've put a fix in for id. I've not tried it yet but I have another query with files.getdirectory.I'll have to take a look at such a special case. I don't use any m3u (or other) playlists so I don't have any specific expectations of what should happen in the case you describe. Generally Playlist.Add does not act recursively on directories but then again an m3u playlist is "just" a file and when it is added to a playlist in XBMC it is automatically expanded to all the tracks it contains.
It lists m3u (and I guess all playlists) as a directory. Which is quite useful. However this means that if I use something like:
it adds all the files in the playlist. Which if there is a dir with the songs and an m3u with those same songs in it gets added twice (by me on purpose to add 1 level of recursive support). I can code around it but should playlist.add be acting this way?Code:{"jsonrpc": "2.0", "method": "Playlist.Add", "params": {"item": {"directory": "playlist.m3u"}, "playlistid": 0}, "id": 1}
vasikgreif Wrote:Speaking of Files.GetDirectory, it still returns directories only, not the files. Anyone having similar problem, or was it fixed during last days? (I'm on two weeks old nightly)...
Uhm Files.GetDirectory is returning directories AND files for me and I didn't do any fundamental changes to it for quite a while (only fixed the bug reported by Mizaki) so please provide specific details on what is not working including your JSON-RPC request, the result and what you would expect to be present in the response.