What does this function do/return??
#1
_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}' %(_item['file']))

it does not match the signature here:
http://mirrors.xbmc.org/docs/python-docs.../xbmc.html

What's that on the end %(_item['file']) ?
XBMC v16.1 Jarvis, Aeon Nox 5.1.1
Windows 7 Home Premium 64bit SP1, CPU: AMD A8-3850 Quad Core Fusion,
MB: ASUS F1A75 V PRO, RAM: 4GB, Video: on board(HDMI), Sound: on board (HDMI),
TV Tuner: Hauppauge HVR-2200
Reply
#2
% (_item['file']) is substituted for the "%s" placeholder which follows "directory":

_item["file"] is a variable in Python, and given the context of this call it's going to be a directory path.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
#3
Ok I get it.
Its the variable to fill the parameter in the string.
XBMC v16.1 Jarvis, Aeon Nox 5.1.1
Windows 7 Home Premium 64bit SP1, CPU: AMD A8-3850 Quad Core Fusion,
MB: ASUS F1A75 V PRO, RAM: 4GB, Video: on board(HDMI), Sound: on board (HDMI),
TV Tuner: Hauppauge HVR-2200
Reply
#4
Yep.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
#5
There is another call similar to the one above but it specifies a PLAYLIST global variable assigned to videodb://1/2/
so why is this passed to the JSON-RPC call. This is not a directory and the API ?
BTW trying to debug randomandlastitems.py
XBMC v16.1 Jarvis, Aeon Nox 5.1.1
Windows 7 Home Premium 64bit SP1, CPU: AMD A8-3850 Quad Core Fusion,
MB: ASUS F1A75 V PRO, RAM: 4GB, Video: on board(HDMI), Sound: on board (HDMI),
TV Tuner: Hauppauge HVR-2200
Reply

Logout Mark Read Team Forum Stats Members Help
What does this function do/return??0