Info on autoexec.py

Hi,
I need to display a list of videos in a loop mode on OSMC mounting a remote share; I’ve prepared this autoexec.py and is working fine:

import xbmc
xbmc.executebuiltin('xbmc.PlayerControl(RepeatAll)')
xbmc.executebuiltin('PlayMedia("/mnt/share","isdir","playlistoffset=1")')
xbmc.executebuiltin("Action(Fullscreen)")
xbmc.executebuiltin('xbmc.Mute()')

The autoexec.py execute in sequence all the videos present in the mounted share; but if I add a video to the directory this video will be not showed until I reboot OSMC; is there any command/solution for autoexec.py to refresh the content of the mounted share in order to automatically add the content to the video list without reboot?

tia
den

Bump!

How about scheduling a cron job that re-sends the command periodically?

Note that from cron I think you’ll have to use something like

kodi-send --action=PlayMedia"(/mnt.share, isdir, playlistoffset=1)"