2014-07-01, 21:30
(2014-06-30, 22:52)ben- Wrote:(2014-06-30, 02:00)Lunatixz Wrote: I'm trying to get a list of all art for a xbmc source folder... info returns fine in a python IDE, but from within xbmc it doesn't work... any ideas?
python code:
Code:json_query = uni('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "%s", "media": "%s", "properties":["art"]}, "id": 1}' % ((path), media))
path = 'smb://192.168.0.0/TV/Orphan Black/Season 02'
media = 'video'
Output in xbmc:
Code:19:49:03 T:22160 DEBUG: JSONRPC: Incoming request: {"jsonrpc":"2.0","method":"Files.GetDirectory","params":{"directory":"smb://192.168.0.0/TV/Orphan Black/Season 02","media":"video","properties":["art"]}, "id": 1}
19:49:03 T:22160 DEBUG: CUtil::GetMatchingSource: no matching source found for [smb://192.168.0.0/TV/Orphan Black/Season 02]
Source query to verify path is in white list:
Code:"file": "smb://192.168.0.0/TV/",
"label": "TV Shows"
You might try URL encoding the directory since it contains spaces (or at lease replace the spaces with %20). Might be an interesting data point.
No luck
url encode
Code:
15:28:59 T:8812 DEBUG: JSONRPC: Incoming request: {"jsonrpc":"2.0","method":"Files.GetDirectory","params":{"directory":"smb%3A//192.168.0.1/TV/Rectify/Season%2001","media":"video","properties":["art"]},"id":1}
15:28:59 T:8812 DEBUG: CUtil::GetMatchingSource: no matching source found for [smb%3A/192.168.0.1/TV/Rectify/Season%2001]
replace space only:
Code:
15:31:48 T:4852 DEBUG: CUtil::GetMatchingSource: no matching source found for [smb://192.168.0.51/TV/Eagleheart/Season%2001]
15:31:48 T:4852 ERROR: XFILE::CDirectory::GetDirectory - Error getting smb://192.168.0.51/TV/Eagleheart/Season%2001