![]() If I run the script manually from within a PuTTY session to the RPi it updates the directory correctly.Īnd Kodi immediately responds by showing the new content in the directory. # Download strm files for all recent videosĮval "tar -xvf $ -C $streamdir" The script itself looks like this: #!/bin/bash So I assume that the script is not actually executed when I hit play… Then I navigated to the streams subdirectory to check the contents and it had not changed, still contains the wrong data. ![]() In KODI I navigated to the main menu and pressed the play button.Edited the existing file inside the keymaps dir named lgtv.xml so it contains this:.Way to implement it, considering all the things plugins do. I would like it to, but I can't figure a good episodes from any TV network: RunScript(ayrandomvideos, "videodb://tvshows/studios/xx/", "label=Cartoon Network").movies from any genre: RunScript(ayrandomvideos, "videodb://movies/genres/xx/", "label=Documentary").from any of your playlists: RunScript(ayrandomvideos, "special://playlists/video/").all music videos: RunScript(ayrandomvideos, "videodb://musicvideos/").all episodes: RunScript(ayrandomvideos, "videodb://tvshows/").Play randomly from a list of all movies: RunScript(ayrandomvideos, "videodb://movies/").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. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |