> For the complete documentation index, see [llms.txt](https://wiki.crosswatch.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.crosswatch.app/blueprint-architecture/sync/_mod_jellyfin/progress.md).

# progress

Related:

* Pair setting: [Progress](/crosswatch/configure-pairs/features/progress.md)
* Technical blueprint: [Progress](broken://spaces/3rh5THg1PdhVsBt3GALo/pages/6mUNmCn3Ju6CJzYTrpZR)

{% tabs %}
{% tab title="End users" %}

### What syncs

This feature syncs **resume position** ("Continue Watching") for a Jellyfin user.

### Supported media types

* Movies: ✅
* Episodes: ✅

### Reads vs writes

* Reads: Jellyfin resumable items.
* Writes:
  * `add` upserts resume position.
  * `remove` clears resume position (sets it to `0`) when enabled.

### Key settings (per pair)

* `features.progress.enable`
* `features.progress.add`
* `features.progress.remove`
* `features.progress.min_seconds` (default `60`)
* `features.progress.delta_seconds` (default `30`)
* `features.progress.max_percent` (default `95`)

### Safety rules (important)

* Progress **never clears from absence**.
* Only an **explicit** `progress_ms = 0` can trigger a clear.
* Near-complete items (>= `max_percent`) are skipped.
  {% endtab %}

{% tab title="Power users" %}

### Index behavior

Jellyfin indexes resumable items via the user Items endpoint.

* `PlaybackPositionTicks` → `progress_ms` (`ticks / 10,000`)
* `RunTimeTicks` → `duration_ms`
* `LastPlayedDate` → `progress_at`

### Write / clear behavior

Writes use the UserData endpoint:

* Upsert: set `PlaybackPositionTicks` to the desired ticks.
* Clear: set `PlaybackPositionTicks` to `0`.

### Planner notes

Thresholds live in `diff_progress`:

* ignore progress < `min_seconds`
* only write when delta >= `delta_seconds`
* ignore progress >= `max_percent` of duration

### Code map

* `providers/sync/jellyfin/_progress.py`
* `cw_platform/orchestrator/_planner.py::diff_progress`

### Matching notes

Resolution uses the provider item ID when possible.

If the destination item can’t be resolved, CrossWatch will mark it unresolved.
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.crosswatch.app/blueprint-architecture/sync/_mod_jellyfin/progress.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
