Skip to content

Instantly share code, notes, and snippets.

@dudeitssm
Forked from schlomo/autoexec.py
Last active January 29, 2022 02:41
Show Gist options
  • Save dudeitssm/7eb6976c583960b0cd1b9f2d6c493624 to your computer and use it in GitHub Desktop.
Save dudeitssm/7eb6976c583960b0cd1b9f2d6c493624 to your computer and use it in GitHub Desktop.
XBMC automatically play all videos in a permanent loop. Ideal for video presentations, digital signage or party mode.
# See also http://wiki.xbmc.org/index.php?title=Autoexec.py
# Put this into the userdata folder, see http://wiki.xbmc.org/index.php?title=Userdata for details where this is for each platform
# on linux,the userdata folder is ~/.kodi/userdata/
import xbmc
xbmc.executebuiltin('xbmc.PlayMedia("/storage/videos/","isdir")')
xbmc.executebuiltin('xbmc.PlayerControl(repeatall)')
xbmc.executebuiltin("Action(Fullscreen)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment