

- #Kodi runscript after videoscan install#
- #Kodi runscript after videoscan skin#
- #Kodi runscript after videoscan tv#
The id of a category needs to be a string.

#Kodi runscript after videoscan tv#
#Kodi runscript after videoscan skin#
In a home menu or even as flair on another window, which can be assigned with Skin Shortcuts It is also possible to create an action that always plays randomly from one specific list, for use

Match the behavior of the button that switches between watched/unwatched/all, In MyVideoNav.xml, watchmode=$INFO should Watchmode accepts 'Unwatched', 'Watched', and 'Ask me', as wellĪs their localized equivalents with these IDs: 16101, 16102, and 36521. To match the context item's visibility on this window.Ī label is available with $ADDON, 'Play Random'. ListItem.IsFolder + !ListItem.IsParentFolder + !String.Contains(ListItem.FolderPath, plugin, Left) + !String.Contains(ListItem.FolderPath, addons, Left) + !String.Contains(ListItem.FolderPath, sources, Left) + !String.IsEqual(ListItem.FolderPath, add) Makes for a good button in the sidebar or as some other container-focused option. In MyVideoNav.xml an action like RunScript(ayrandomvideos, "$INFO", "label=$INFO", watchmode=$INFO) There are optionalĪrguments watchmode, which can override the default watch mode selected in the add-on settings,Īnd singlevideo to play just a single video, if you have occasion for such an action. ListItem.Label or FolderName, and is required when available, also escaped/quoted. List path is the path to the list to play, like ListItem.FolderPath, which should beĮscaped ( $ESCINFO). Skins can use it with an action like so: RunScript(ayrandomvideos,, "label="). Source available on GitHub at ayrandomvideos. Support and feedback thread on the Kodi Forums.
#Kodi runscript after videoscan install#
Install it from the official Kodi repo, under "Context menus", for Kodi 16 Jarvis and newer. That can be executed by skins with RunScript and JSON-RPC with Addons.ExecuteAddon.

It adds a context item to most playable lists of videos and provides a script Play random episodes from TV shows, movies from genres/sets/years/tags, and videosįrom playlists, file systems, and just about anything else*. A Kodi add-on to quickly play random videos from (nearly) any list.
