<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="context.seren" version="1.0.4" name="Seren - Global Context Menu Items" provider-name="Nixgates">
	<requires>
		<import addon="xbmc.python" version="2.23.0" />
	</requires>
	<extension point="kodi.context.item">
        <menu id="kodi.core.main">
			<item library="quickResume.py">
				<label>Quick Resume Show</label>
				<visible>String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+String.IsEqual(ListItem.dbtype,tvshow)</visible>
			</item>
            <item library="shuffle.py">
                <label>Shuffle Play</label>
                <visible>String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+[String.IsEqual(ListItem.dbtype,tvshow)|String.IsEqual(ListItem.dbtype,episode)]</visible>
            </item>
			<item library="playFromRandomPoint.py">
                <label>Play From Random Episode</label>
                <visible>String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+String.IsEqual(ListItem.dbtype,tvshow)</visible>
            </item>
			<item library="rescrape.py">
                <label>Rescrape Item</label>
                <visible>String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+[String.IsEqual(ListItem.dbtype,episode)|String.IsEqual(ListItem.dbtype,movie)]</visible>
            </item>
			<item library="sourceSelect.py">
                <label>Source Select</label>
                <visible>String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+[String.IsEqual(ListItem.dbtype,episode)|String.IsEqual(ListItem.dbtype,movie)]</visible>
            </item>
			<item library="findSimilar.py">
                <label>Find Similar</label>
                <visible>String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+[String.IsEqual(ListItem.dbtype,tvshow)|String.IsEqual(ListItem.dbtype,movie)]</visible>
            </item>
			<item library="browseShow.py">
                <label>Browse Show</label>
                <visible>String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+[String.IsEqual(ListItem.dbtype,episode)|String.IsEqual(ListItem.dbtype,tvshow)]</visible>
            </item>
			<item library="browseSeason.py">
				<label>Browse Season</label>
				<visible>String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+String.IsEqual(ListItem.dbtype,episode)</visible>
			</item>
			<item library="traktManager.py">
				<label>Trakt Manager</label>
				<visible>String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+[String.IsEqual(ListItem.dbtype,episode)|String.IsEqual(ListItem.dbtype,tvshow)|String.IsEqual(ListItem.dbtype,season)|String.IsEqual(ListItem.dbtype,movie)]</visible>
			</item>
        </menu>
    </extension>
	<extension point="xbmc.addon.metadata">
		<summary lang="en">Seren - This Addon is currently in beta. Please be aware there may be bugs present</summary>
		<description lang="en">Adds Global Contextual Menu Items for Seren menu items throughout Kodi
		</description>
		<platform>all</platform>
		<license>GNU GENERAL PUBLIC LICENSE. Version 3, 29 June 2007</license>
		<forum></forum>
		<website></website>
		<source></source>
		<disclaimer lang="en"></disclaimer>
		<assets>
			<icon>ico-fox-gold-final.png</icon>
			<fanart>fanart-fox-gold-final.png</fanart>
		</assets>
		<news>
Changelog 1.0.4:
Remove plugin.video.seren Dependency
Added Quick Resume option
Added Play From Random Episode option
			
Changelog 1.0.3:
Updated artwork to match Seren

Changelog 1.0.2:
Fixed Re-scrape item not working on smartplay items
Fixed Source Select not working on smartplay items
Fixed shuffle play for episode items

Changelog 1.0.1:
Trakt Manager now supports new Seren URL format

Changelog 1.0.0:
Support for Seren 1.0.0

Changelog 0.8:
Fixed missing season number

Changelog 0.7
Updated Trakt Manager to support Seasons

Changelog Version 0.5:
Fixed Source Select (Changed built-in function to PlayMedia)

Changelog Version 0.4:
Trakt Manager now available for season objects

Changelog Version 0.3:
Fixed Shuffle play on continue watching items
Added Browse Show for TV show items
Removed Torrent File Select - Moved to internal seren Menus only
Added Trakt Manager
		</news>
	</extension>
</addon>
