2011-12-18, 14:52
A couple of questions on Files.GetDirectory:
1: I was expecting by specifying media:music that I would only get music files returned but I get the directory names. The folder has only directories with the albums names. Am I just misunderstanding what media:music does?
2: I have a smart playlist that returns all the albums from an artist randomly. Albumid is empty. Is that expected?
Thanks.
1: I was expecting by specifying media:music that I would only get music files returned but I get the directory names. The folder has only directories with the albums names. Am I just misunderstanding what media:music does?
Code:
{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params" : { "directory" : "/audio/artist/", "media" : "music", "sort": { "order": "ascending", "method": "file" } }, "id": 1}
2: I have a smart playlist that returns all the albums from an artist randomly. Albumid is empty. Is that expected?
Code:
{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "special://profile/playlists/music/artist.xsp", "media": "music", "properties": ["albumid", "artistid"]}, "id": 1}
Thanks.