Solved autoexec.py not working on Raspberry Pi 4B
#1
Need to start a particular video on YouTube addon with autoexec.py when booting Kodi on LibreELEC, Raspberry Pi 4B. Tried following script but not working and cant find any particular info in log too.
#/.kodi/userdata/autoexec.py

import xbmc

xbmc.executebuiltin('RunScript("plugin://plugin.video.youtube/","1","?v=CtQYF3wlgL8","resume:false")')

Somebody please help to configure the autoexec.py file so that on boot Kodi start playing a particular video from YouTube.
Reply
#2
Try ~/.config/autostart.sh for autostarting stuff on the RPi4B when running LibreELEC.
Unless you are running Raspbian instead, our crystal ball as well as yourself haven't revealed that info to us.
Reply
#3
(2020-01-08, 11:24)Klojum Wrote: Try ~/.config/autostart.sh for autostarting stuff on the RPi4B when running LibreELEC.
Unless you are running Raspbian instead, our crystal ball as well as yourself haven't revealed that info to us.
Solved by adding right command to xbmc.executebuiltin in autoexec.py file like following.

xbmc.executebuiltin("RunPlugin(plugin://plugin.video.youtube/play/?video_id=CtQYF3wlgL8)")
Reply
#4
Thread marked solved.
Reply

Logout Mark Read Team Forum Stats Members Help
autoexec.py not working on Raspberry Pi 4B0