FAQ Database Discussion Community


XBMC/KODI error adding addon “structure incorrect”

add-on,xbmc,kodi
I'm following the KODI/XBMC hello world addon tutorial here and i downloaded the finished project from here but the problem is that i cannot edit it, as ever time I try to add a version that I edited onto KODI it gives me the error Addon does not have correct...

ImportError (encodings) when calling video player with python script from parent media center Kodi

python,python-3.x,homebrew,kodi
I'm trying to use the video player mpv with vapoursynth filter, which itself uses Python 3, as external player in the media center Kodi. mpv shortly flashes up in the Dock, then it crashes, accompanied with the error message: "mpv quit unexpectedly." and the terminal output Fatal Python error: Py_Initialize:...

Python - shutil How to select multiple directories for deletion with similar names

python,glob,xbmc,shutil,kodi
I have a Directory called "master" inside I have sub directories as so. |master---- |test.directory.one |test directory.two |test.directory.three |test.directory.four |test.directory.five |this.directory.keep I would like to create a python script that deletes all the directories that start with test.directory and ignore anything else Thanks for you help. Any guidance is greatly...

Python - How to delete rest of string after a specific word/character

python,kodi
I'm a complete python noob, so please go easy. I'm currently hacking/editing a kodi plugin called pseudo library, so that it cleans up the titles of the streams I'm grabbing so that I can put it into a better looking EPG. Currently they look like this: [COLOR white]3E (Now -...

A simple Script to extracting a zip file

python,unzip,zipfile,xbmc,kodi
Good Evening all, I think I'm not understanding the zipfile structure properly heres the code import xbmc import zipfile targetzip = xbmc.translatePath('special://home/userdata/addon_data/plugin.program.tester/test.zip') extractto = xbmc.translatePath('special://home/userdata/addon_data/plugin.program.tester/') zip = ZipFile(targetzip) zip.extractall(extractto) Any Ideas why Its not working?...

Java - Nested JSON objects

json,sockets,xbmc,kodi
I am trying to create a simple JAVA remote for XBMC/KODI and I think im doing ok so far (still early days) but I have hit a snag when I reached a nested JSON object. This is the original code I am converting to JAVA: {"jsonrpc": "2.0", "method": "Player.PlayPause", "params":...