<?xml version="1.0" encoding="UTF-8"?>
<settings>
  <category label="Quellen">
    <setting id="serienstream_base_url" type="text" label="SerienStream Basis-URL" default="https://s.to" />
    <setting id="aniworld_base_url" type="text" label="AniWorld Basis-URL" default="https://aniworld.to" />
    <setting id="topstream_base_url" type="text" label="TopStream Basis-URL" default="https://topstreamfilm.live" />
    <setting id="einschalten_base_url" type="text" label="Einschalten Basis-URL" default="https://einschalten.in" />
    <setting id="filmpalast_base_url" type="text" label="Filmpalast Basis-URL" default="https://filmpalast.to" />
    <setting id="doku_streams_base_url" type="text" label="Doku-Streams Basis-URL" default="https://doku-streams.com" />
  </category>

  <category label="Metadaten">
    <setting id="serienstream_metadata_source" type="enum" label="SerienStream Metadatenquelle" default="0" values="Automatisch|Quelle|TMDB|Mischen" />
    <setting id="aniworld_metadata_source" type="enum" label="AniWorld Metadatenquelle" default="0" values="Automatisch|Quelle|TMDB|Mischen" />
    <setting id="topstreamfilm_metadata_source" type="enum" label="TopStream Metadatenquelle" default="0" values="Automatisch|Quelle|TMDB|Mischen" />
    <setting id="einschalten_metadata_source" type="enum" label="Einschalten Metadatenquelle" default="0" values="Automatisch|Quelle|TMDB|Mischen" />
    <setting id="filmpalast_metadata_source" type="enum" label="Filmpalast Metadatenquelle" default="0" values="Automatisch|Quelle|TMDB|Mischen" />
    <setting id="doku_streams_metadata_source" type="enum" label="Doku-Streams Metadatenquelle" default="0" values="Automatisch|Quelle|TMDB|Mischen" />
    <setting id="tmdb_enabled" type="bool" label="TMDB aktivieren" default="true" />
    <setting id="tmdb_language" type="text" label="TMDB Sprache (z. B. de-DE)" default="de-DE" />
    <setting id="tmdb_show_plot" type="bool" label="TMDB Beschreibung anzeigen" default="true" />
    <setting id="tmdb_show_art" type="bool" label="TMDB Poster und Vorschaubild anzeigen" default="true" />
    <setting id="tmdb_show_fanart" type="bool" label="TMDB Fanart/Backdrop anzeigen" default="true" />
    <setting id="tmdb_show_rating" type="bool" label="TMDB Bewertung anzeigen" default="true" />
    <setting id="tmdb_show_votes" type="bool" label="TMDB Stimmen anzeigen" default="false" />
  </category>

  <category label="TMDB Erweitert">
    <setting id="tmdb_api_key" type="text" label="TMDB API Key" default="" />
    <setting id="tmdb_prefetch_concurrency" type="number" label="TMDB: gleichzeitige Anfragen (1-20)" default="6" />
    <setting id="tmdb_show_cast" type="bool" label="TMDB Besetzung anzeigen" default="false" />
    <setting id="tmdb_show_episode_cast" type="bool" label="TMDB Besetzung pro Episode anzeigen" default="false" />
    <setting id="tmdb_genre_metadata" type="bool" label="TMDB Daten in Genre-Listen anzeigen" default="false" />
    <setting id="tmdb_log_requests" type="bool" label="TMDB API-Anfragen loggen" default="false" />
    <setting id="tmdb_log_responses" type="bool" label="TMDB API-Antworten loggen" default="false" />
  </category>

  <category label="Updates">
    <setting id="update_channel" type="enum" label="Update-Kanal" default="1" values="Main|Nightly|Custom" />
    <setting id="apply_update_channel" type="action" label="Update-Kanal jetzt anwenden" action="RunPlugin(plugin://plugin.video.viewit/?action=apply_update_channel)" option="close" />
    <setting id="auto_update_enabled" type="bool" label="Automatische Updates (beim Start pruefen)" default="false" />
    <setting id="select_update_version" type="action" label="Version waehlen und installieren" action="RunPlugin(plugin://plugin.video.viewit/?action=select_update_version)" option="close" />
    <setting id="update_installed_version" type="text" label="Installierte Version" default="-" enable="false" />
    <setting id="update_available_selected" type="text" label="Verfuegbar (gewaehlter Kanal)" default="-" enable="false" />
    <setting id="update_available_main" type="text" label="Verfuegbar Main" default="-" enable="false" />
    <setting id="update_available_nightly" type="text" label="Verfuegbar Nightly" default="-" enable="false" />
    <setting id="update_active_channel" type="text" label="Aktiver Kanal" default="-" enable="false" />
    <setting id="update_active_repo_url" type="text" label="Aktive Repo URL" default="-" enable="false" />
    <setting id="update_info" type="text" label="Updates laufen ueber den normalen Kodi-Update-Mechanismus." default="" enable="false" />
    <setting id="update_repo_url_main" type="text" label="Main URL (addons.xml)" default="https://gitea.it-drui.de/viewit/ViewIT-Kodi-Repo/raw/branch/main/addons.xml" />
    <setting id="update_repo_url_nightly" type="text" label="Nightly URL (addons.xml)" default="https://gitea.it-drui.de/viewit/ViewIT-Kodi-Repo/raw/branch/nightly/addons.xml" />
    <setting id="update_repo_url" type="text" label="Custom URL (addons.xml)" default="https://gitea.it-drui.de/viewit/ViewIT-Kodi-Repo/raw/branch/nightly/addons.xml" />
    <setting id="auto_update_last_ts" type="text" label="Auto-Update letzte Pruefung (intern)" default="0" visible="false" />
    <setting id="update_version_addon" type="text" label="ViewIT Version" default="-" visible="false" />
    <setting id="update_version_serienstream" type="text" label="SerienStream Version" default="-" visible="false" />
    <setting id="update_version_aniworld" type="text" label="AniWorld Version" default="-" visible="false" />
    <setting id="update_version_einschalten" type="text" label="Einschalten Version" default="-" visible="false" />
    <setting id="update_version_topstreamfilm" type="text" label="TopStream Version" default="-" visible="false" />
    <setting id="update_version_filmpalast" type="text" label="Filmpalast Version" default="-" visible="false" />
    <setting id="update_version_doku_streams" type="text" label="Doku-Streams Version" default="-" visible="false" />
  </category>

  <category label="Debug Global">
    <setting id="debug_log_urls" type="bool" label="URLs mitschreiben (global)" default="false" />
    <setting id="debug_dump_html" type="bool" label="HTML speichern (global)" default="false" />
    <setting id="debug_show_url_info" type="bool" label="Aktuelle URL anzeigen (global)" default="false" />
    <setting id="debug_log_errors" type="bool" label="Fehler mitschreiben (global)" default="false" />
    <setting id="log_max_mb" type="number" label="URL-Log: maximale Dateigroesse (MB)" default="5" />
    <setting id="log_max_files" type="number" label="URL-Log: Anzahl alter Dateien" default="3" />
    <setting id="dump_max_files" type="number" label="HTML: maximale Dateien pro Plugin" default="200" />
  </category>

  <category label="Debug Quellen">
    <setting id="log_urls_serienstream" type="bool" label="SerienStream: URLs mitschreiben" default="false" />
    <setting id="dump_html_serienstream" type="bool" label="SerienStream: HTML speichern" default="false" />
    <setting id="show_url_info_serienstream" type="bool" label="SerienStream: Aktuelle URL anzeigen" default="false" />
    <setting id="log_errors_serienstream" type="bool" label="SerienStream: Fehler mitschreiben" default="false" />

    <setting id="log_urls_aniworld" type="bool" label="AniWorld: URLs mitschreiben" default="false" />
    <setting id="dump_html_aniworld" type="bool" label="AniWorld: HTML speichern" default="false" />
    <setting id="show_url_info_aniworld" type="bool" label="AniWorld: Aktuelle URL anzeigen" default="false" />
    <setting id="log_errors_aniworld" type="bool" label="AniWorld: Fehler mitschreiben" default="false" />

    <setting id="log_urls_topstreamfilm" type="bool" label="TopStream: URLs mitschreiben" default="false" />
    <setting id="dump_html_topstreamfilm" type="bool" label="TopStream: HTML speichern" default="false" />
    <setting id="show_url_info_topstreamfilm" type="bool" label="TopStream: Aktuelle URL anzeigen" default="false" />
    <setting id="log_errors_topstreamfilm" type="bool" label="TopStream: Fehler mitschreiben" default="false" />

    <setting id="log_urls_einschalten" type="bool" label="Einschalten: URLs mitschreiben" default="false" />
    <setting id="dump_html_einschalten" type="bool" label="Einschalten: HTML speichern" default="false" />
    <setting id="show_url_info_einschalten" type="bool" label="Einschalten: Aktuelle URL anzeigen" default="false" />
    <setting id="log_errors_einschalten" type="bool" label="Einschalten: Fehler mitschreiben" default="false" />

    <setting id="log_urls_filmpalast" type="bool" label="Filmpalast: URLs mitschreiben" default="false" />
    <setting id="dump_html_filmpalast" type="bool" label="Filmpalast: HTML speichern" default="false" />
    <setting id="show_url_info_filmpalast" type="bool" label="Filmpalast: Aktuelle URL anzeigen" default="false" />
    <setting id="log_errors_filmpalast" type="bool" label="Filmpalast: Fehler mitschreiben" default="false" />
  </category>
</settings>
