<addon id="plugin.video.filteredmovies"
       name="海报墙2.0"
       version="2.1.3"
       provider-name="senmang">

    <requires>
        <import addon="xbmc.python" version="3.0.0" />
    </requires>

    <!-- 注册 default.py 为脚本模块，以便 RunScript 调用 -->
    <extension point="xbmc.python.script" library="default.py">
        <provides>executable</provides>
    </extension>

    <!-- 注册后台服务，用于自动跳过片头 -->
    <extension point="xbmc.service" library="service.py" />


    <!-- 右键菜单 -->
    <extension point="kodi.context.item">
      <menu id="kodi.core.main">
        <item library="delete_movie.py">
          <label lang="zh_CN">删除影片</label>
          <label lang="zh_TW">刪除影片</label>
          <label lang="en_GB">Delete Movie</label>
          <visible>String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,tvshow) | String.IsEqual(ListItem.DBType,set)</visible>
        </item>
      </menu>
    </extension>

    <!-- 元数据 -->
    <extension point="xbmc.addon.metadata">
        <summary lang="zh_CN">电影剧集筛选和增强工具</summary>
        <summary lang="en_GB">Movies and TV shows filter and enhancement tool</summary>
        <description lang="zh_CN">电影剧集筛选和增强工具插件。
项目主页: github.com/forbxy
主要功能包括：
1. 完整的类似在线流媒体平台的筛选页面。
2. 支持九宫格(T9)拼音搜索快速定位。
3. 一键快捷切换字幕、音轨和播放倍速。
4. 自动加载 ISO 格式视频的外部字幕。
5. 自动补全/修正播放列表</description>
        <description lang="en_GB">An advanced movie/TV show filtering and enhancement tool for Kodi.
Key features include:
1. Interactive filter UI similar to streaming platforms.
2. T9 pinyin search for fast video lookup.
3. Quick toggles for subtitles, audio tracks, and playback speed.
4. Manually record and automatically skip TV show intros and outros.
5. Auto-loading of external subtitles for ISO files.
6. Set movie fanart as the global Kodi background.</description>
        <platform>all</platform>
        <assets>
            <icon>icon.png</icon>
        </assets>
    </extension>

</addon>
