How do I play a videoplaylist or videos from directory from NAS after Kodi start?

  • I used autoexec.py.

    If I work with locally stored data, everything is fine. (Video files, eventually playlist are stored localy).

    import xbmc xbmc.executebuiltin( "PlayMedia(/storage/videos/, isdir)" )

    or

    import xbmc xbmc.executebuiltin("PlayMedia(/storage/.kodi/userdata/playlists/video/Playlist.m3u)")

    But if I want to use files stored on NAS, it does not work,

    import xbmc

    xbmc.executebuiltin( "PlayMedia(smb://10.0.0.114/Video/, isdir)" )

    or with locally stored playlis

    import xbmc

    xbmc.executebuiltin("PlayMedia(/storage/.kodi/userdata/playlists/video/Playlist.m3u)")

    Videos from NAS and playlists work normaly fine, but after running autoexec.py, nothing happens.

    Can anyone advise on what's wrong?

  • Did you check for any errors in logs?Could be network is not ready when your command is executed..try to set a minimum of 5 seconds delay before kodi starts for network in Libreelec addon...