{% from "_partials/macros.html" import loading_spinner %}

{{ _("Activity Settings") }}

{{ _("Manage activity monitoring data and import historical sessions") }}

{% if error %}

{{ error }}

{% endif %} {% if success %}

{{ success }}

{% endif %}
{# ───── Data Management ──────────────────────────────────────── #}

{{ _("Data Management") }}

{{ _("Cleanup live telemetry and import historical sessions from connected servers") }}

{{ _("Live Activity Data") }}

{{ _("Remove all current monitoring records.") }}

{# ───── Historical Data Import ─────────────────────────────── #}

{{ _("Historical Data Import") }}

{{ _("Fetch watched history from Plex, Jellyfin, Emby, or AudiobookShelf to enrich analytics and dashboards") }}

{% if media_servers %} {% else %}
{{ _("No verified Plex, Jellyfin, Emby, or AudiobookShelf servers available. Add and verify a server to enable historical imports.") }}
{% endif %}

{{ _("Choose how many days of history to fetch (1–365)") }}

{{ _("Default is unlimited – set a number to restrict how many entries are imported") }}

{# ───── Import Jobs ─────────────────────────────────────────── #}

{{ _("Import Jobs") }}

{{ _("Track queued, running, and recently completed imports") }}

{{ loading_spinner(_('Loading recent jobs...')) }}