2012-05-07, 06:56
Hello,
I have set up my xbmc to autostart with a slideshow, I created a file in .xbmc/userdata/autoexec.py and added this to it;
This will start the slideshow and refresh the directory every few minutes detecting new pictures, the only issue is that it will not play videos any more.
If I use this script;
It will autostart the slideshow and play the videos but it will not refresh the directory detecting new pictures/video.
What I need help with is trying to figure out why the first script stops video from being played in the slideshow since I need the slideshow to refresh the directory and play the new files.
Any help would be greatly appreciated.
I have set up my xbmc to autostart with a slideshow, I created a file in .xbmc/userdata/autoexec.py and added this to it;
Code:
import xbmc
from time import sleep
from os import listdir
minutes = 1
picfolder = "//home//daniel//Pictures"
l1 = []
while 1:
l2 = listdir(picfolder)
if (l1 != l2):
xbmc.executebuiltin("Slideshow(//home//daniel//Pictures)")
l1 = l2
for seconds in range(minutes * 60):
sleep(1)
This will start the slideshow and refresh the directory every few minutes detecting new pictures, the only issue is that it will not play videos any more.
If I use this script;
Code:
import xbmc
xbmc.executebuiltin("Slideshow(//home//daniel//Pictures)")
It will autostart the slideshow and play the videos but it will not refresh the directory detecting new pictures/video.
What I need help with is trying to figure out why the first script stops video from being played in the slideshow since I need the slideshow to refresh the directory and play the new files.
Any help would be greatly appreciated.