2014-01-20, 19:36
Will this be a feature? allowing addon_data paths to query json, or do I have to rewrite my addon??
(2014-01-20, 19:36)Lunatixz Wrote: Will this be a feature? allowing addon_data paths to query json, or do I have to rewrite my addon??
(2014-01-22, 20:08)Tolriq Wrote: Playing with AudioLibrary.SetSongDetails and it seems that modifying for example rating have not impact on currently playing media.
And if the song is part of a playlist moving in the playlist does not either refresh the data. Old one is shown until a stop / start of the player.
Is there a way from JSON to force a refresh so user does see the change he does to currently playing media ?
(2014-01-22, 19:39)Montellese Wrote:(2014-01-20, 19:36)Lunatixz Wrote: Will this be a feature? allowing addon_data paths to query json, or do I have to rewrite my addon??
See PR4065.
(2014-01-27, 09:21)MilhouseVH Wrote: Is there any possibility of the Textures.GetTextures method supporting limits so that rows can be retrieved in chunks, as supported by other methods?Might be added in the future.
(2014-01-27, 20:53)Lunatixz Wrote:(2014-01-22, 19:39)Montellese Wrote:(2014-01-20, 19:36)Lunatixz Wrote: Will this be a feature? allowing addon_data paths to query json, or do I have to rewrite my addon??
See PR4065.
I'm still having read issues from addon_data folders using latest night... Wasn't it merged?
(2014-01-27, 20:59)Montellese Wrote:(2014-01-27, 09:21)MilhouseVH Wrote: Is there any possibility of the Textures.GetTextures method supporting limits so that rows can be retrieved in chunks, as supported by other methods?Might be added in the future.
(2014-01-27, 20:53)Lunatixz Wrote:Please provide the specific request (with parameters) that you are having problems with. I only did some quick tests with Files.GetDirectory.(2014-01-22, 19:39)Montellese Wrote: See PR4065.
I'm still having read issues from addon_data folders using latest night... Wasn't it merged?
sendJSON command: {"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "D:\\XBMC_Gotham\\portable_data\\userdata\\addon_data\\script.pseudotv.live\\cache\\generated\\movies_Action.xsp", "media": "video", "properties":["season","episode","playcount","duration","runtime","tagline","showtitle","album","artist","plot","plotoutline"]}, "id": 1}
# ./texturecache.py directory special://profile/addon_data
DIR : special://profile/addon_data/os.openelec.settings
DIR : special://profile/addon_data/plugin.video.SportsDevil
DIR : special://profile/addon_data/plugin.video.iplayer
DIR : special://profile/addon_data/plugin.video.missingmoviescanner
DIR : special://profile/addon_data/plugin.video.youtube
DIR : special://profile/addon_data/script.artwork.downloader
DIR : special://profile/addon_data/script.common.plugin.cache
DIR : special://profile/addon_data/script.module.simple.downloader
DIR : special://profile/addon_data/script.moviesetart
DIR : special://profile/addon_data/service.openelec.settings
DIR : special://profile/addon_data/service.skin.widgets
DIR : special://profile/addon_data/weather.wunderground
DIR : special://profile/addon_data/xbmc.debug
2014-01-27 22:45:53.549990:MainThread: libDirectory.JSON SOCKET REQUEST: [{"jsonrpc": "2.0", "params": {"directory": "special://profile/addon_data", "media": "files", "properties": ["file"]}, "method": "Files.GetDirectory", "id": "libDirectory"}]
2014-01-27 22:45:53.568238:MainThread: libDirectory.BUFFER RECEIVED (len 1890)
2014-01-27 22:45:53.568368:MainThread: libDirectory.PARSING JSON DATA: {"id":"libDirectory","jsonrpc":"2.0","result":{"files":[{"file":"special://profile/addon_data/xbmc.debug/","filetype":"directory","label":"xbmc.debug","type":"unknown"},{"file":"special://profile/addon_data/weather.wunderground/","filetype":"directory","label":"weather.wunderground","type":"unknown"},{"file":"special://profile/addon_data/service.skin.widgets/","filetype":"directory","label":"service.skin.widgets","type":"unknown"},{"file":"special://profile/addon_data/service.openelec.settings
<snip>
"label":"os.openelec.settings","type":"unknown"}}],"limits":{"end":13,"start":0,"total":13}}}
(2014-01-28, 00:48)MilhouseVH Wrote: It's working for me (latest OpenELEC/XBMC master build from git about 30 minutes ago):
Code:# ./texturecache.py directory special://profile/addon_data
DIR : special://profile/addon_data/os.openelec.settings
DIR : special://profile/addon_data/plugin.video.SportsDevil
DIR : special://profile/addon_data/plugin.video.iplayer
DIR : special://profile/addon_data/plugin.video.missingmoviescanner
DIR : special://profile/addon_data/plugin.video.youtube
DIR : special://profile/addon_data/script.artwork.downloader
DIR : special://profile/addon_data/script.common.plugin.cache
DIR : special://profile/addon_data/script.module.simple.downloader
DIR : special://profile/addon_data/script.moviesetart
DIR : special://profile/addon_data/service.openelec.settings
DIR : special://profile/addon_data/service.skin.widgets
DIR : special://profile/addon_data/weather.wunderground
DIR : special://profile/addon_data/xbmc.debug
2014-01-27 22:45:53.549990:MainThread: libDirectory.JSON SOCKET REQUEST: [{"jsonrpc": "2.0", "params": {"directory": "special://profile/addon_data", "media": "files", "properties": ["file"]}, "method": "Files.GetDirectory", "id": "libDirectory"}]
2014-01-27 22:45:53.568238:MainThread: libDirectory.BUFFER RECEIVED (len 1890)
2014-01-27 22:45:53.568368:MainThread: libDirectory.PARSING JSON DATA: {"id":"libDirectory","jsonrpc":"2.0","result":{"files":[{"file":"special://profile/addon_data/xbmc.debug/","filetype":"directory","label":"xbmc.debug","type":"unknown"},{"file":"special://profile/addon_data/weather.wunderground/","filetype":"directory","label":"weather.wunderground","type":"unknown"},{"file":"special://profile/addon_data/service.skin.widgets/","filetype":"directory","label":"service.skin.widgets","type":"unknown"},{"file":"special://profile/addon_data/service.openelec.settings
<snip>
"label":"os.openelec.settings","type":"unknown"}}],"limits":{"end":13,"start":0,"total":13}}}
I'm also able to drill down into those directories too.
(2014-01-28, 01:02)Lunatixz Wrote: Did any of the properties i'm using change/
SETTINGS_LOC = 'special://profile/addon_data/' + ADDON_ID
CHANNELS_LOC = xbmc.translatePath(os.path.join(SETTINGS_LOC, 'cache')) + '/'
MADE_CHAN_LOC = os.path.join(CHANNELS_LOC, 'stored') + '/'
fle = MADE_CHAN_LOC + os.path.split('somefilename')[1]
fle = xbmc.translatePath(fle)