<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.meta" name="Meta" version="1.0.0" provider-name="MetaTeam">
  <requires>
    <import addon="xbmc.python" version="2.20.0"/>
    <import addon="script.module.requests"/>
    <import addon="script.module.futures" version="2.2.0"/>
  </requires>
  
  <extension point="xbmc.python.pluginsource" library="addon.py">
    <provides>video</provides>
  </extension>
  
  <extension point="xbmc.service" library="service.py" start="[login|startup]">
  </extension>
  
  <extension point="kodi.context.item" library="context_playable.py">
    <provides>executable</provides>	
      <item>
        <label>$ADDON[plugin.video.meta 31002]</label>
        <visible>!System.HasAddon(context.meta) + [StringCompare(ListItem.dbtype,movie) | StringCompare(ListItem.dbtype,episode)] + SubString(ListItem.FileNameAndPath, plugin.video.meta)</visible>
      </item>
  </extension>

  <extension point="kodi.context.item" library="context_tvshow.py">
    <provides>executable</provides>	
      <item>
        <label>$ADDON[plugin.video.meta 31022]</label>
        <visible>StringCompare(ListItem.dbtype,tvshow) + SubString(ListItem.Path, plugin.video.meta)</visible>
      </item>
  </extension>

  <extension point="xbmc.addon.metadata">
    <platform>all</platform>
    <language></language>
    <summary>TMDB and TVDB media listing</summary>
    <description>Browse TMDB and TVDB media</description>
    <supportedcontent>
      <content>movies</content>
      <content>tvshows</content>
      <content>episodes</content>
    </supportedcontent>	
  </extension>
</addon>
