2015-11-06, 01:37
Hi all .I recently started to learn how to make kodi addon so my first stop was kodi wiki.
I found Audio-video add-on tutorial and tried to run it but i couldn't find the zip file on their page(http://kodi.wiki/view/Audio-video_add-on_tutorial)
could any one help me install Audio-video add-on tutorial code on kodi?
I have installed the HelloWorld addon that i found its zip file on github.com size. But unfortunately could not find the zip file for aduio-video addon tutorial.
So i tried to replace the following code found on kodi wiki with the code in helloworld addon.py but i get "Error:Script failed!:Hello World" and it did not play the video.( I placed a working video url on the code)
addon.py code:
xbmc.log error details:
could any one help fix above error or help me find the zip file for Audio-video_add-on_tutorial addon?
Looking forward for replies.Thanks
I found Audio-video add-on tutorial and tried to run it but i couldn't find the zip file on their page(http://kodi.wiki/view/Audio-video_add-on_tutorial)
could any one help me install Audio-video add-on tutorial code on kodi?
I have installed the HelloWorld addon that i found its zip file on github.com size. But unfortunately could not find the zip file for aduio-video addon tutorial.
So i tried to replace the following code found on kodi wiki with the code in helloworld addon.py but i get "Error:Script failed!:Hello World" and it did not play the video.( I placed a working video url on the code)
addon.py code:
Code:
import sys
import xbmcgui
import xbmcplugin
addon_handle = int(sys.argv[1])
xbmcplugin.setContent(addon_handle, 'movies')
url = 'http://someremotewebsite/some_video.mp4'
li = xbmcgui.ListItem('My First Video!', iconImage='DefaultVideo.png')
xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)
xbmcplugin.endOfDirectory(addon_handle)
xbmc.log error details:
Code:
ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "C:\......\addons\script.hello.world-master\addon.py", line 5, in <module>
addon_handle = int(sys.argv[1])
IndexError: list index out of range
-->End of Python script error report<--
could any one help fix above error or help me find the zip file for Audio-video_add-on_tutorial addon?
Looking forward for replies.Thanks