forked from rmrector/script.playrandomvideos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddon.xml
39 lines (39 loc) · 3.09 KB
/
addon.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.playrandomvideos" name="Play Random Videos" version="1.2.1~adev" provider-name="rmrector">
<requires>
<import addon="xbmc.addon" version="16.0.0" />
<import addon="xbmc.python" version="2.20.0" />
<import addon="script.module.simplejson" version="3.3.0"/>
</requires>
<extension point="kodi.context.item">
<menu id="kodi.core.main">
<item library="context.py">
<label>32100</label>
<visible>!Skin.HasSetting(disablecontext:script.playrandomvideos) + [Window.IsVisible(videos) | StringCompare(ListItem.DBTYPE, set) | StringCompare(ListItem.DBTYPE, tvshow) | StringCompare(ListItem.DBTYPE, season) | String.IsEqual(ListItem.DBTYPE, set) | String.IsEqual(ListItem.DBTYPE, tvshow) | String.IsEqual(ListItem.DBTYPE, season)] + ListItem.IsFolder + !ListItem.IsParentFolder + ![SubString(ListItem.FolderPath, plugin, Left) | SubString(ListItem.FolderPath, addons, Left) | SubString(ListItem.FolderPath, sources, Left) | String.StartsWith(ListItem.FolderPath, plugin) | String.StartsWith(ListItem.FolderPath, addons) | String.StartsWith(ListItem.FolderPath, sources)] + ![StringCompare(ListItem.FolderPath, add) | String.IsEqual(ListItem.FolderPath, add)]</visible>
</item>
<item library="context_single.py">
<label>32099</label>
<visible>Skin.HasSetting(enablecontext:script.playrandomvideos.single) + [Window.IsVisible(videos) | StringCompare(ListItem.DBTYPE, set) | StringCompare(ListItem.DBTYPE, tvshow) | StringCompare(ListItem.DBTYPE, season) | String.IsEqual(ListItem.DBTYPE, set) | String.IsEqual(ListItem.DBTYPE, tvshow) | String.IsEqual(ListItem.DBTYPE, season)] + ListItem.IsFolder + !ListItem.IsParentFolder + ![SubString(ListItem.FolderPath, plugin, Left) | SubString(ListItem.FolderPath, addons, Left) | SubString(ListItem.FolderPath, sources, Left) | String.StartsWith(ListItem.FolderPath, plugin) | String.StartsWith(ListItem.FolderPath, addons) | String.StartsWith(ListItem.FolderPath, sources)] + ![StringCompare(ListItem.FolderPath, add) | String.IsEqual(ListItem.FolderPath, add)]</visible>
</item>
</menu>
</extension>
<extension point="xbmc.python.library" library="script.py" />
<extension point="xbmc.addon.metadata">
<summary lang="en">Plays random videos from all sorts of lists.</summary>
<description lang="en">This add-on can quickly play random episodes from TV shows, movies from genres/sets/years/tags, and videos from playlists, the filesystem, and just about anything else, other than plugins.</description>
<news>v1.2.0 (2017-11-13)
- Feature: merge in 'Play one random' context item
- Feature: option for continuous play
- Feature: option to play from all videos if no (un)watched videos available as configured
- Feature: option to exclude TV show extras from random selection
- Fix: Leia compatibility for context items</news>
<platform>all</platform>
<source>https://github.com/rmrector/script.playrandomvideos</source>
<forum>https://forum.kodi.tv/showthread.php?tid=238613</forum>
<license>The MIT License</license>
<disclaimer />
<language />
<website />
<email />
</extension>
</addon>