(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.