Issue with python script
#1
I'm trying to use Kodi to do an auto start and play but I'm having an issue with a script I found on this forums not working

Code:
import xmbc
xmbc.executebuiltin("PlayMedia(/home/pi/path/to/file.mp4)")
xmbc.executebuiltin("PlayerControl(Repeat)")

I have tried it with xmbc and with kodi as the import. I'm googling but I can't find anything on it. I tried doing a playlist but Kodi doesn't let you create video playlists only now playing lists (which is a little irritating). I activated debug mode and when I look through the log it says kodi and xmbc are not recognized modules. Am I missing something?

EDIT: I think I may have put this in the wrong forum. If so, my apologies.
Reply
#2
your code looks correct to me.
please post a Debug Log.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Have you tried RepeatAll
Reply
#4
What does your addon.xml look like?
Reply
#5
(2015-06-11, 22:18)spoyser Wrote: Have you tried RepeatAll
+1
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#6
Try

import xbmc

xbmc != xmbc
Reply
#7
http://pastebin.com/VFMfR8VD

Sorry for the late reply. Was off from work yesterday. RepeatAll did not work. The issue comes from a xmbc module not being recognized. My pastebin has my debug log. I'm going to amet's suggestion and see if that works

Touche. I have wrong spelling I feel dumb
Reply
#8
Amet found my error. I spelled xbmc wrong (xmbc was my spelling) Everything is working properly now. Thanks all.
Reply

Logout Mark Read Team Forum Stats Members Help
Issue with python script0