<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="context.seren" version="3.0.1" name="Seren - Global Context Menu Items" provider-name="Nixgates">
	<requires>
		<import addon="xbmc.addon" version="17.9.910" />
		<import addon="xbmc.python" version="3.0.0" />
	</requires>
	<extension point="kodi.context.item">
		<menu id="kodi.core.main">
			<item library="context.py" args="quickRresume">
				<label>$ADDON[context.seren 30000]</label>
				<visible>String.IsEmpty(Window(home).Property(context.seren.quickResume)) + String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+String.IsEqual(ListItem.dbtype,tvshow)</visible>
			</item>
			<item library="context.py" args="shuffle">
				<label>$ADDON[context.seren 30001]</label>
				<visible>String.IsEmpty(Window(home).Property(context.seren.shuffle)) + String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+[String.IsEqual(ListItem.dbtype,tvshow)|String.IsEqual(ListItem.dbtype,episode)]</visible>
			</item>
			<item library="context.py" args="playFromRandomPoint">
				<label>$ADDON[context.seren 30002]</label>
				<visible>String.IsEmpty(Window(home).Property(context.seren.playFromRandomPoint)) + String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+String.IsEqual(ListItem.dbtype,tvshow)</visible>
			</item>
			<item library="context.py" args="rescrape">
				<label>$ADDON[context.seren 30003]</label>
				<visible>String.IsEmpty(Window(home).Property(context.seren.rescrape)) + String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+[String.IsEqual(ListItem.dbtype,episode)|String.IsEqual(ListItem.dbtype,movie)]</visible>
			</item>
			<item library="context.py" args="rescrape_ss">
				<label>$ADDON[context.seren 30010]</label>
				<visible>String.IsEmpty(Window(home).Property(context.seren.rescrape_ss)) + String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+[String.IsEqual(ListItem.dbtype,episode)|String.IsEqual(ListItem.dbtype,movie)]</visible>
			</item>
			<item library="context.py" args="sourceSelect">
				<label>$ADDON[context.seren 30004]</label>
				<visible>String.IsEmpty(Window(home).Property(context.seren.sourceSelect)) + String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+[String.IsEqual(ListItem.dbtype,episode)|String.IsEqual(ListItem.dbtype,movie)]</visible>
			</item>
			<item library="context.py" args="findSimilar">
				<label>$ADDON[context.seren 30005]</label>
				<visible>String.IsEmpty(Window(home).Property(context.seren.findSimilar)) + String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+[String.IsEqual(ListItem.dbtype,tvshow)|String.IsEqual(ListItem.dbtype,movie)]</visible>
			</item>
			<item library="context.py" args="browseShow">
				<label>$ADDON[context.seren 30006]</label>
				<visible>String.IsEmpty(Window(home).Property(context.seren.browseShow)) + String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+[String.IsEqual(ListItem.dbtype,episode)|String.IsEqual(ListItem.dbtype,season)|String.IsEqual(ListItem.dbtype,tvshow)]</visible>
			</item>
			<item library="context.py" args="browseSeason">
				<label>$ADDON[context.seren 30007]</label>
				<visible>String.IsEmpty(Window(home).Property(context.seren.browseSeason)) + String.StartsWith(ListItem.path,plugin://plugin.video.seren/)+[String.IsEqual(ListItem.dbtype,episode)]</visible>
			</item>
			<item library="context.py" args="traktManager">
				<label>$ADDON[context.seren 30008]</label>
				<visible>String.IsEmpty(Window(home).Property(context.seren.traktManager)) + 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.service" library="service.py" />
	<extension point="xbmc.addon.metadata">
		<summary lang="en">Seren - Global Context Menu Items</summary>
		<summary lang="nl">Seren - Algemene contextmenu-items</summary>
		<description lang="en">Adds Context Menu items for Seren menu items throughout Kodi</description>
		<description lang="nl">Voegt contextmenu-items toe voor Seren-menu-items in 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>resources/images/ico-seren-3.png</icon>
			<fanart>fanart-seren-3.png</fanart>
			<clearlogo>resources/images/logo-seren-3.png</clearlogo>
			<poster>resources/images/poster-seren-3.png</poster>
		</assets>
		<news>
			Changelog 3.0.1
			Fix Shuffle play copy pasta mix up		
			Resolve settings not showing in Kodi

			Changelog 3.0.0
			Re-write of context menu addon, supporting py3 only (Matrix and above)
			Update icons to match Seren 3.0.0 release
			Update language support set to match Seren (add auto-translated Hebrew)

			Changelog 2.2.0
			Added "Rescrape and Source Select" context menu item.

			Changelog 2.1.2
			Added Polish translation

			Changelog 2.1.1:
			Implemented a workaround for broken future.backports module method (fixes Leia issues)

			Changelog 2.1.0:
			Refactored code to modern standards
			Use backported URL lib for py2 to ensure unicode compatibility
			Extracted out common functions and reused
			Add settings to enable/disable individual items
			Add more localizations
			Add GitHub issue templates

			Changelog 2.0.2:
			Make python version agnostic

			Changelog 2.0.1:
			Fixed addon icons/fanart

			Changelog 2.0.0:
			Rework for Seren 2.0
		</news>
	</extension>
</addon>
