2013-11-21, 08:53
(2013-11-20, 14:36)mikebzh44 Wrote: Hi.
Butchabay have made some tests with my script (randomandlastitems) with Gotham and it seems that this release cannot resolve special://skin path :
http://forum.xbmc.org/showthread.php?tid...pid1508162
How to reproduce this issue (tested with Gotham 13.0-ALPHA10 Git:20131117-7f212b9) :
1 - create playlists/video/<PlaylistName>.xsp file in skin folder
2 - Try to get movie list from this playlist :
Code:_json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "%s", "media": "video", "properties": ["title", "originaltitle", "playcount", "year", "genre", "studio", "country", "tagline", "plot", "runtime", "file", "plotoutline", "lastplayed", "trailer", "rating", "resume", "art", "streamdetails", "mpaa", "director", "dateadded"]}, "id": 1}' %(PLAYLIST))
_json_query = unicode(_json_query, 'utf-8', errors='ignore')
_json_pl_response = json.loads(_json_query)
print("##### RESPONSE=",_json_pl_response)
Error in xbmc.log :
Code:13:23:47 T:6976 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "special://skin/playlists/video/Parents.xsp", "media": "video", "properties": ["title", "originaltitle", "playcount", "year", "genre", "studio", "country", "tagline", "plot", "runtime", "file", "plotoutline", "lastplayed", "trailer", "rating", "resume", "art", "streamdetails", "mpaa", "director", "dateadded"]}, "id": 1}
13:23:47 T:6976 DEBUG: CUtil::GetMatchingSource: no matching source found for [special://skin/playlists/video/Parents.xsp]
13:23:47 T:6976 DEBUG: Previous line repeats 4 times.
13:23:47 T:6976 NOTICE: ('##### RESPONSE=', {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Invalid params.', u'code': -32602}})
The same playlist stored in special://profile/playlists/video/Parents.xsp is OK :
Code:13:28:36 T:6084 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "special://profile/playlists/video/Parents.xsp", "media": "video", "properties": ["title", "originaltitle", "playcount", "year", "genre", "studio", "country", "tagline", "plot", "runtime", "file", "plotoutline", "lastplayed", "trailer", "rating", "resume", "art", "streamdetails", "mpaa", "director", "dateadded"]}, "id": 1}
13:28:36 T:6084 DEBUG: CVideoDatabase::RunQuery took 15 ms for 92 items query: select * from movieview WHERE ((movieview.strPath LIKE '%Parents%'))
13:28:36 T:6084 NOTICE: ('##### RESPONSE=', {u'jsonrpc': u'2.0', u'id': 1, u'result': {u'files': [{u'rating': 3.799999952316284, u'art': {u'fanart': ....................
.........
Using special://skin/playlists/video/Parents.xsp file is OK in Frodo :
Code:13:07:21 T:3380 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "special://skin/playlists/video/Parents.xsp", "media": "video", "properties": ["title", "originaltitle", "playcount", "year", "genre", "studio", "country", "tagline", "plot", "runtime", "file", "plotoutline", "lastplayed", "trailer", "rating", "resume", "art", "streamdetails", "mpaa", "director", "dateadded"]}, "id": 1}
13:07:21 T:3380 DEBUG: CVideoDatabase::RunQuery took 14 ms for 92 items query: select * from movieview WHERE ((movieview.strPath LIKE '%Parents%'))
Thanks.
Probably because of the restrictions added to Files.GetDirectory for security reasons. Will see if "special://skin" is in the list of exceptions.
(2013-11-21, 06:18)MilhouseVH Wrote: Latest Gotham (24ce994a311668ff6fbb2840230c24405dd6300a) - can anyone confirm if artists are being returned for "AudioLibrary.GetAlbums"?
Eg.
Code:{"jsonrpc": "2.0", "params": {"sort": {"order": "ascending", "method": "label"}, "filter": {"operator": "contains", "field": "album", "value": "abbey road"}, "properties": ["title", "artist", "fanart", "thumbnail"]}, "method": "AudioLibrary.GetAlbums", "id": "libAlbums"}
{"id":"libAlbums","jsonrpc":"2.0","result":{"albums":[{"albumid":25,"artist":[""],"fanart":"image://http%3a%2f%2fassets.fanart.tv%2ffanart%2fmusic%2fb10bbbfc-cf9e-42e0-be17-e2c3e1d2600d%2fartistbackground%2fthe-beatles-4ddaaf1a51231.jpg/","label":"Abbey Road","thumbnail":"image://nfs%3a%2f%2f192.168.0.3%2fmnt%2fshare%2fdata%2fMusic%2fMP3%2fBeatles%2fAbbey%20Road%2fcover.jpg/","title":"Abbey Road"}],"limits":{"end":1,"start":0,"total":1}}}
Notice how the artist field is [""], when it should be: ["The Beatles"]
It's the same without a filter too - no artitsts returned for any call to GetAlbums.
Maybe one of the fallouts of the musicdb changes. Can you create a trac ticket? Thanks.