> 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/crosswatch/settings/connections/media-clients/kodi/kodi-add-on.md). Agents can also search and read this documentation through its [MCP server](https://wiki.crosswatch.app/~gitbook/mcp).

# Kodi Add-on

Report Kodi playback to CrossWatch and identify each household viewer.

The Kodi add-on reports playback to CrossWatch and identifies each viewer. CrossWatch can then sync each person's history to their own providers.

A shared Kodi profile does not need to create a shared watch history.

[@Rouzax](https://github.com/crosswatch-app/kodi-addon/commits?author=Rouzax) maintains the add-on. Use the [Kodi add-on repository](https://github.com/crosswatch-app/kodi-addon) for questions and issues.

### Guides

{% content-ref url="/pages/4Aeor1OdFoTuAst9JZtv" %}
[Install and connect](https://wiki.crosswatch.app/crosswatch/settings/connections/media-clients/kodi/kodi-add-on/install-and-connect.md)
{% endcontent-ref %}

{% content-ref url="/pages/3QvoS6c2evjUSD7OXQyN" %}
[Identify viewers](https://wiki.crosswatch.app/crosswatch/settings/connections/media-clients/kodi/kodi-add-on/identify-viewers.md)
{% endcontent-ref %}

{% content-ref url="/pages/UySdrC0vIUcnvNGfE2Sg" %}
[Ratings](https://wiki.crosswatch.app/crosswatch/settings/connections/media-clients/kodi/kodi-add-on/ratings.md)
{% endcontent-ref %}

{% content-ref url="/pages/lIkTvDadB7YhfdQ7B2Kj" %}
[Settings reference](https://wiki.crosswatch.app/crosswatch/settings/connections/media-clients/kodi/kodi-add-on/settings-reference.md)
{% endcontent-ref %}

{% content-ref url="/pages/Y5F7KxPp0U2CZ2pnVJL4" %}
[Troubleshooting and reporting](https://wiki.crosswatch.app/crosswatch/settings/connections/media-clients/kodi/kodi-add-on/troubleshooting-and-reporting.md)
{% endcontent-ref %}

{% hint style="success" %}
**Available from Kodi's repository**

CrossWatch for Kodi 1.0.1 is in the official Kodi add-on repository for Kodi 21 (Omega) and Kodi 22 (Piers).
{% endhint %}

### How it decides who watched

Kodi does not identify the person who pressed play. The add-on resolves viewers in this order:

1. A smart playlist of a viewer contains the show or film.
2. The active Kodi profile belongs to a viewer.
3. Otherwise Kodi asks when playback stops, and remembers the answer for a show.

With one configured viewer, every playback belongs to them. Kodi never asks a question. See [Who watched](#who-watched) for details.

### Requirements

| Requirement                    | Details                                                                                                                                       |
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Kodi                           | Kodi 21 (Omega) or Kodi 22 (Piers). Earlier versions are not supported.                                                                       |
| CrossWatch                     | v0.13.3 or later, the first release with Kodi add-on support (marked experimental there).                                                     |
| Rating                         | CrossWatch v0.13.4 or later.                                                                                                                  |
| Picking people from CrossWatch | CrossWatch v0.13.5 or later.                                                                                                                  |
| Network                        | Kodi must be able to reach CrossWatch, for example both on the same home network. CrossWatch does not need to reach Kodi, except for Link.    |
| HTTPS                          | A certificate from a public certificate authority, such as Let's Encrypt through a reverse proxy. Self-signed certificates are not supported. |

Include `https://` when using HTTPS. Without a scheme, the add-on assumes `http://`.

Kodi's web server and JSON-RPC interface are not needed. Only the optional Link shortcut uses them.

### Install

CrossWatch for Kodi 1.0.1 is available from Kodi's official add-on repository on Omega and Piers:

1. Open **Add-ons**.
2. Select **Install from repository** → **Kodi Add-on repository** → **Services**.
3. Select **CrossWatch for Kodi**, then select **Install**.
4. Complete [Quick start](#quick-start).

Kodi updates the add-on automatically. For screenshots and troubleshooting, see the [installation guide](https://crosswatch-app.github.io/kodi-addon/install/).

### Quick start

Set up each Kodi device once. This takes a few minutes.

Before you start, install the add-on and connect each person's destination services in CrossWatch.

{% stepper %}
{% step %}

#### Pair

In CrossWatch, open **Settings → Connections → Media clients → Kodi**. Select **Add-on**, not JSON-RPC, then choose **Connect add-on**.

In Kodi, open the add-on settings and choose **Pair with CrossWatch**. Enter the CrossWatch address and pairing code.

See [Connect to CrossWatch](#connect-to-crosswatch) for connection details and errors.
{% endstep %}

{% step %}

#### Add a viewer per person in Kodi

In the add-on's **Viewers** settings, select **Configure viewers and playlists**. Add each person from CrossWatch's list, or enter their name.

Assign smart playlists, Kodi profiles, or both. See [Add a viewer](#add-a-viewer).

Live alone? Add yourself as the only viewer. Playback is always credited to you.
{% endstep %}

{% step %}

#### Add a route per person in CrossWatch

Create one Kodi watcher route for each person. This determines where CrossWatch sends their playback. Either:

* assign the route to the person's CrossWatch user profile, and no whitelist is needed, or
* put their viewer name in the route's **Username whitelist**.

Names must match, except for case and punctuation. A whitelist takes precedence over a profile. **Find users** lists viewers reported by the add-on.

{% hint style="info" %}
Using CrossWatch user profiles? Do this step before the previous one. Once a route is assigned to a profile, **Add viewer** lists that person to pick from after the add-on's next check-in, within five minutes. This needs CrossWatch v0.13.5 or newer.
{% endhint %}
{% endstep %}

{% step %}

#### Check

Within minutes, each viewer should show **CrossWatch route**. **No CrossWatch route** means the names do not match.
{% endstep %}
{% endstepper %}

Now play something. Anything the playlists and profiles do not settle is asked when playback stops (see Who watched). To get a rating question as well, see Rating.

### Connect to CrossWatch

The add-on needs a CrossWatch address and accepted token. Pairing configures both. Do this once for each Kodi device and Kodi profile.

CrossWatch setup is covered in [Kodi](https://wiki.crosswatch.app/crosswatch/settings/connections/media-clients/kodi).

#### Pairing

Open CrossWatch in a browser first. Have its address ready, for example `192.168.1.10:8787`.

1. In CrossWatch, open the Kodi profile this device should use, select **Add-on** and click **Connect add-on**. CrossWatch shows a pairing code.
2. In Kodi, open the add-on settings (**Add-ons** → **My add-ons** → **Services** → **CrossWatch** → **Configure**) and, in the **CrossWatch** category, select **Pair with CrossWatch**.

   <img src="https://github.com/user-attachments/assets/a3cfda91-bc75-4deb-b217-530ee5abb142" alt="Add-on settings: Pair with CrossWatch, Status, Unpair" width="600">
3. Type the CrossWatch address. `http://` is assumed if you leave it out, and a trailing slash or the full webhook URL is fine too.

   ![Address prompt](https://github.com/user-attachments/assets/c6b62c2d-ac0a-44a2-be2d-c9b3774cfbfd)
4. Type the pairing code: six letters and digits, valid for 10 minutes and for one use. Case and spaces do not matter, so `ab 23 cd` works for `AB23CD`.

   ![Pairing code prompt](https://github.com/user-attachments/assets/2f8d8be9-c55c-4eb7-b70d-d502ecbee397)

Kodi confirms the CrossWatch instance. The **Status** field reads `Paired with <instance> at <address>`. Reporting starts immediately. Kodi does not need a restart.

![Paired notification](https://github.com/user-attachments/assets/31dc03c9-43b0-4062-8323-4b4912b91257)

Selecting **Pair** closes settings and saves other changes. Leaving either field empty cancels pairing.

**If pairing fails**

The existing connection remains unchanged. The message identifies the problem.

| Message                                              | What to do                                                                                                                                                                 |
| ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Code wrong or expired. Get a new code in CrossWatch. | Ask CrossWatch for a new code. If it offers none, check that the Kodi add-on is switched on for this profile in CrossWatch.                                                |
| Too many tries. Wait a few minutes and try again.    | Wait, then pair with a new code.                                                                                                                                           |
| Can't reach CrossWatch at `<address>`.               | Check the address and port, and that Kodi can reach that machine.                                                                                                          |
| Pairing failed: CrossWatch answered HTTP `<code>`.   | Something went wrong on CrossWatch's side. Check CrossWatch's log.                                                                                                         |
| The certificate of `<address>` was not accepted.     | An `https://` address needs a certificate from a public authority such as Let's Encrypt. Self-signed certificates do not work. Use `http://` on your home network instead. |
| Not a CrossWatch address: `<address>`                | Use an `http://` or `https://` address. A URL containing `?token=` belongs in Manual setup.                                                                                |

![Wrong code message](https://github.com/user-attachments/assets/12e7591b-ac25-4e7e-915d-02ef55248283)

#### The Status line

* `Paired with <instance> at <address>`: CrossWatch answered at least once.
* `Not paired`: no address or token is configured.

This field records the last successful response. It does not test the live connection. It can still show **Paired** after CrossWatch becomes unavailable.

#### Link (shortcut)

CrossWatch can link the add-on without a code when it already controls Kodi through JSON-RPC. Kodi disables this interface by default. Start the action from CrossWatch with **Link add-on**.

![Link question on the TV](https://github.com/user-attachments/assets/46d8a992-096d-4855-b52e-a59df31bce4f)

**Yes** connects as pairing does and shows the same failures. **No**, or no response within 60 seconds, changes nothing. Most households should use pairing.

#### Moving to another CrossWatch

Pair directly with the new CrossWatch. You do not need to unpair first. Queued completed watches for the old CrossWatch are discarded because they use its token. Changing the address for the same CrossWatch keeps them.

#### Unpair

**Unpair** stops reporting and clears the address and token. Queued completed watches remain. They send if you pair again with the same CrossWatch and token.

#### Manual setup (advanced)

You can configure the connection manually. Switch Kodi settings to the **Advanced** level to show **Webhook URL** and **Webhook token**.

![Settings at the Advanced level](https://github.com/user-attachments/assets/e9d8afce-11e0-44ae-ba1c-9ded5f327c1b)

* **Webhook URL**: the full endpoint, such as `http://192.168.1.10:8787/webhook/kodiwatcher`. It is used exactly as typed.
* **Webhook token**: the token from CrossWatch.

CrossWatch's **Manual setup** provides a URL ending in `?token=`. Paste it into **Webhook URL**. The add-on moves the token to **Webhook token** when you confirm. It sends the token only in a request header.

Pairing fills in these fields. Editing either changes the paired connection.

{% hint style="warning" %}
The add-on URL contains a secret token. Treat it like a password.
{% endhint %}

### Who watched

Kodi does not know who is watching. The add-on evaluates each playback in this order and stops at the first match. Configure these methods for each viewer.

1. Smart playlists: the show or film is in a viewer's playlist.
2. Kodi profile: the active Kodi profile belongs to a viewer.
3. The question at the end: Kodi asks, and for a show remembers the answer.

When nobody matches, the add-on sends playback without a viewer. Only a route without a profile or username whitelist accepts it.

#### Smart playlists

Give each person smart playlists that describe the TV shows or films they watch. Episodes match the show's playlist. Films match their own playlist.

* **Works well:** a fixed list of shows, or rules on genre, tag, studio and other things that do not change when you watch.
* **Avoid:** playlists that change because of playback, such as "Continue Watching" or "In Progress" (rules on in progress, play count or last played). Whoever owns that playlist gets credited for the next episode of anything that was just played, whoever watched it.

The add-on refreshes playlist membership hourly by default. It also refreshes after a library scan, clean, or viewer change. It never refreshes during active playback. New playlist items count after the next refresh.

If a viewer's playlist cannot be read, for example because it was renamed or deleted, Kodi shows "Playlist could not be read, so viewer identification is reduced: `<playlist names>`". Until you fix it, none of that viewer's playlists count, and the add-on falls back to the profile and the question. See What the warnings mean.

#### Kodi profile

If the active Kodi profile belongs to a viewer, playback is credited to them. This helps only when household members use separate Kodi profiles.

{% hint style="info" %}
**Set up the add-on in every profile**

Kodi keeps each add-on's settings per profile, so the add-on's connection, viewers and remembered answers are separate in every Kodi profile. Pair the add-on and set up viewers in each profile that should report playback.
{% endhint %}

#### The question at the end

When neither playlists nor profile name anybody, Kodi asks who watched once playback stops. It never asks at the start, so playback is never held up.

<figure><img src="https://raw.githubusercontent.com/crosswatch-app/kodi-addon/main/docs/screenshots/who-watched/who-watched-episode.png" alt="The who-watched window"><figcaption><p>The who-watched window</p></figcaption></figure>

* Press OK on each person who watched; you can tick several. "Everyone" ticks them all (or clears them all when all are ticked).
* Press Done to send the watch with the people you ticked.
* Skip, Back, or Done with nobody ticked sends it with no viewer. Nothing is remembered, so you are asked again next time.

The window closes by itself after two minutes, or when playback starts again, as if you had pressed Skip. The stop is sent to CrossWatch once the question is answered or closes.

**For a show, the answer is remembered** and used for its later episodes, from the moment they start, so you are asked once per show. To see, change or forget these answers, use Remembered answers. For a film nothing is remembered.

The question is not asked:

* with fewer than two viewers.
* for a film, when "Ask who watched a film" is off.
* when playback stopped in the first three minutes of the item (Kodi's "ignore at start" point, 180 seconds unless changed in Kodi's advanced settings). What counts is the position where it stopped, not how long you watched.
* when the next item starts straight away (binge watching or autoplay). The one that ended is sent with no viewer.
* while another dialog is open, or while Kodi is shutting down.

If rating is switched on, the rating question follows this one.

#### One person in the household

Add yourself as the only viewer, with no playlists or profiles. With exactly one viewer, everything is credited to that viewer and no question is ever asked. The name must match the username in your CrossWatch route's whitelist.

Having no viewers at all also works, if your CrossWatch route has an empty username whitelist and no user profile: every playback is then sent with no viewer.

### Viewers

Add one viewer per person in the household, and tell the add-on how to recognise each of them: by smart playlists, by Kodi profiles, or neither (then the add-on asks at the end of playback). Who watched explains how these are used.

Open it from the add-on settings: **Viewers** → **Configure viewers and playlists**.

<figure><img src="https://raw.githubusercontent.com/crosswatch-app/kodi-addon/main/docs/screenshots/viewers/viewers-split.png" alt="The Viewers window"><figcaption><p>The Viewers window</p></figcaption></figure>

Pick a viewer on the left to see their CrossWatch route, playlists and profiles on the right. The buttons along the bottom act on that viewer. Every change is saved at once and applies from the next playback. There is nothing to confirm when you close the window.

A warning icon next to a viewer means something needs fixing; the right-hand side shows what. See What the warnings mean.

#### Add a viewer

If CrossWatch has user profiles assigned to this Kodi's routes, Add viewer lists those people; otherwise you type the name. Picking is the safer way: the name is CrossWatch's own, so it cannot be mistyped, and it follows a rename in CrossWatch.

**Pick people from CrossWatch**

<figure><img src="https://raw.githubusercontent.com/crosswatch-app/kodi-addon/main/docs/screenshots/viewers/people-picker.png" alt="Adding viewers from CrossWatch"><figcaption><p>Adding viewers from CrossWatch</p></figcaption></figure>

1. Select "Add viewer" (with no viewers yet, the list opens straight away).
2. Tick everyone you want to add with OK, then press Done. Each ticked person becomes a viewer.
3. For each new viewer in turn, tick their playlists and press Done, or press Cancel to keep that viewer without playlists.

A few cases behave differently in step 2:

* **A name CrossWatch would confuse with a viewer you typed earlier.** The add-on says "CrossWatch treats `<person>` as the same as the viewer `<viewer>`. Remove that viewer first, or rename the profile in CrossWatch." and skips that person.
* **A viewer you typed earlier already has the person's name, apart from case.** Ticking that person links the viewer to them instead of adding a second one. The viewer keeps its playlists and remembered answers, takes CrossWatch's spelling of the name, and is not asked for playlists again.
* **A name that belongs to a viewer already linked to someone else.** That person is skipped without a message.

The list holds every CrossWatch user profile that is assigned to a route on this Kodi without a username whitelist, minus the people already added. A route with a whitelist takes the names in it rather than the profile's, so its profile is not listed. A profile shows up here once a route on this Kodi is assigned to it in CrossWatch and the add-on has checked in, which it does every five minutes. For someone who has no profile, select "Type a name".

The list needs CrossWatch v0.13.5 or newer. With an older CrossWatch, "Add viewer" always opens the keyboard. A newer one opens the keyboard too when no route on this Kodi is assigned to a profile, when everyone listed is already a viewer, when the add-on is not paired, or when it has not checked in yet.

**Type a name**

1. Select "Add viewer", then "Type a name" if the list of people opens (with no viewers and no people, the keyboard opens straight away). Anyone you ticked in that list is added first, with their playlists asked as after Done, and then the keyboard opens.
2. Type the person's name. It must match the name in that person's CrossWatch route "Username whitelist" (or, for a route without a whitelist, the name of the user profile it is assigned to), or CrossWatch has nowhere to send their playback.
3. Tick their playlists and press Done, or press Cancel to add the viewer without playlists.

A typed name that matches one of CrossWatch's people is linked to that person, just as if you had picked them, and saved with the profile's exact spelling: typing "anna-lee" for the profile "Anna Lee" adds the viewer "Anna Lee".

**How names are compared**

CrossWatch ignores upper and lower case, spaces and punctuation when it compares names, so "Anna-Lee" and "annalee" are the same name to it. Accents and letters of any script count, so "José" and "Jose" are two names. A name without any letter or digit, such as an emoji, is compared as typed, apart from case and surrounding spaces.

The add-on therefore refuses a typed name that CrossWatch would confuse with an existing viewer: "CrossWatch treats this name as the same as `<name>`. Choose another name." An empty name, or an exact copy of an existing one, is refused without a message.

Two people picked from CrossWatch may differ only in spaces or punctuation, such as "Anna B." and "Annab", because CrossWatch keeps two profiles like that apart.

#### Give a viewer playlists

Select "Playlists". The list shows Kodi's smart playlists of TV shows and of films; other kinds of playlist cannot be used and are not offered.

<figure><img src="https://raw.githubusercontent.com/crosswatch-app/kodi-addon/main/docs/screenshots/playlists/playlist-picker.png" alt="Picking playlists"><figcaption><p>Picking playlists</p></figcaption></figure>

Tick or untick a playlist with OK, then press Done to save, or Cancel to change nothing. Use the search box to narrow a long list; ticked playlists that the search hides stay ticked.

"Also Ben, Chloe" next to a playlist means those viewers have it too. Everything in a shared playlist is credited to all of them, which is right for a family playlist and wrong for one person's list.

The list is read when the Viewers window opens. If you make a new smart playlist in Kodi while it is open, close the window and open it again to see it.

If Kodi has no smart playlists of TV shows or films at all, you get "Kodi has no smart playlists of TV shows or films yet. Make one under Videos, Playlists, then come back here." Make one in Kodi first, under **Videos** → **Playlists**, with the type TV shows or Movies.

#### Give a viewer Kodi profiles

Select "Profiles". The list comes from Kodi, so there is nothing to type: tick the profiles that belong to this person and press Done. A profile that another viewer already has shows "Also `<names>`".

Profiles only help if each person really switches to their own Kodi profile. Note that each Kodi profile also has its own copy of the add-on's settings; see the note under Kodi profile.

#### Rename a viewer

Select "Rename" and edit the name. The same name rules apply as when adding one. The viewer's remembered answers move to the new name.

{% hint style="warning" %}
Change the name in the CrossWatch route's username whitelist too. Until you do, that route no longer receives this viewer's playback, and the viewer shows "No CrossWatch route".
{% endhint %}

**Viewers linked to CrossWatch**

A viewer picked from CrossWatch, or whose name matches one of CrossWatch's people, is linked to that person. Its panel shows "Name from CrossWatch", and it has no Rename button: a different name would stop the route from receiving its playback.

To rename a linked viewer, rename the user profile in CrossWatch. At its next check-in the add-on takes over the new name, shows a short "Renamed in CrossWatch" notification with the new name, and moves the viewer's remembered answers and any finished watches still waiting for delivery to the new name. If another viewer already has the new name, the add-on leaves both alone. Remove that other viewer, or rename its profile in CrossWatch if it is linked, and the rename follows at the next check-in.

Existing viewers whose names match one of CrossWatch's people are linked at the add-on's first check-in with a CrossWatch that lists people, and take the profile's exact spelling. A viewer typed as "anna-lee" for the profile "Anna Lee" becomes "Anna Lee", with the same message and the same move of remembered answers and waiting watches as a rename. If another viewer already has that spelling, the viewer is left unlinked and unchanged.

#### Remove a viewer

Select "Remove" and confirm. The viewer's name is taken out of every remembered answer. A show that was remembered only for this viewer is forgotten, so the question is asked again at the end of its next episode.

#### What the warnings mean

| You see                      | Meaning                                                                                                          | What to do                                                                                    |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| "No CrossWatch route"        | No route in CrossWatch accepts this viewer's name.                                                               | See A viewer shows "No CrossWatch route".                                                     |
| A playlist tagged "missing"  | The playlist was deleted or renamed in Kodi. Until it is fixed, **none** of this viewer's playlists count.       | Open "Playlists", untick it (it is at the end of the list), tick its replacement, press Done. |
| A playlist tagged "unusable" | It is not a playlist of TV shows or films, so it never credits anyone. The viewer's other playlists still count. | See A playlist shows as unusable.                                                             |
| A profile tagged "missing"   | Kodi no longer has that profile.                                                                                 | Open "Profiles", untick it, press Done.                                                       |

"CrossWatch route", with a check mark, means a route accepts the name. Neither line is shown while the add-on is not paired, or until CrossWatch has reported its routes for that name. It does so at the add-on's next check-in: every five minutes, and at once after you add or rename a viewer.

### Remembered answers

When you answer the question at the end for an episode, the add-on remembers who watched that show and stops asking. This window lets you check those answers, correct a wrong one, or forget one so the question comes back.

Open it from the add-on settings: **Viewers** → **Remembered answers**. With nothing remembered yet, you get the notice "No remembered answers yet." instead.

<figure><img src="https://raw.githubusercontent.com/crosswatch-app/kodi-addon/main/docs/screenshots/remembered/remembered-split-covered.png" alt="Remembered answers"><figcaption><p>Remembered answers</p></figcaption></figure>

Pick a show on the left to see its answer on the right. To find a show, use the search box (it matches show titles and viewer names), or press "Viewer" to cycle through the viewers and "will ask again", which lists the shows whose answer no longer names any configured viewer. A show whose title is unknown is listed by its id, such as "tvdb 81189" or "Kodi library id 12".

#### Change or forget an answer

* **Change** opens the who-watched window with the current answer ticked. Tick the right people and press Done. Done with nobody ticked forgets the answer; Skip or Back changes nothing.
* **Forget** removes the answer after you confirm. The question is asked again at the end of the show's next episode.
* **Forget all** forgets every show in the list after you confirm. While a search or viewer filter is active it reads "Forget N shown" and forgets only the shows listed.

Changes apply from the next playback.

#### What the details mean

* **Answer**: the viewers credited for this show. "will ask again" means none of them is a viewer any more, so the question comes back.
* **Covered by**: a viewer's playlist contains this show, and playlists win over remembered answers. The answer is kept, and used again if the show ever leaves the playlist.
* **Not in library** (warning icon): the show is no longer in your Kodi library. Forget it if you removed the show for good.
* **Not stable** (warning icon): the show had no scraper id (such as TVDb or TMDb), so the answer was stored against Kodi's internal library number, and that number now belongs to another show ("now points at `<other show>`") or cannot be checked ("no title stored to check it"). Such an answer can only be forgotten; you are asked again next time.

<figure><img src="https://raw.githubusercontent.com/crosswatch-app/kodi-addon/main/docs/screenshots/remembered/remembered-split-not-stable.png" alt="A Not stable answer"><figcaption><p>A "Not stable" answer</p></figcaption></figure>

#### When a remembered answer is not used

Playlists and the Kodi profile are checked first, so either one overrides a remembered answer. Only a playlist is shown as "Covered by"; a show decided by the Kodi profile has no mark here.

If the wrong person is credited for a show marked "Covered by", fix the playlist, not the answer. A playlist should describe what that person watches, not what was played last; see Smart playlists.

### Rating

After you finish an episode or a film, the add-on can ask how it was and send the score to CrossWatch, which passes it on to services such as Trakt or Plex.

This needs CrossWatch v0.13.4 or later. An older one ignores ratings.

#### Switch it on

In the add-on settings, **Viewers** category, set "Ask for a rating" to Films, Episodes, or Films and episodes. It is Off by default. Three more settings then appear:

* **When to ask**: "After each watch" (the default) asks every time playback stops. "At the end, for everything watched" saves the questions up while you binge, and asks them all once you stop.
* **Shared rating**: one question for everyone who watched, instead of one per person. Off by default.
* **Write the rating to Kodi's library**: also set Kodi's own user rating. Off by default; see Kodi's own rating.

#### When it asks

Only after a watch that Kodi counts as finished: played to the end, or past Kodi's watched threshold (90 percent by default). If the who-watched question is asked too, the rating question comes after it.

With "After each watch", an episode that autoplay moved on from is not rated; only the last one before you stopped is. With "At the end, for everything watched", every finished watch is collected and asked about when playback stops, newest first. The collection lives only while Kodi runs: closing Kodi drops the questions not yet asked.

It is not asked:

* when the who-watched question was skipped or ran out of time.
* for a viewer who has since been removed.
* while another dialog is open, or while Kodi is shutting down.
* for anything the add-on does not report (see What the add-on sends).

#### Who is asked

Everyone the watch was credited to, however that was decided (see Who watched):

* With "Shared rating" off, each person gets their own question, "`<name>`, how was it?", one after the other, and each can skip.
* With "Shared rating" on, one question, "How was it?", and the score goes to everyone credited.
* When nobody was credited, one question, "How was it?", and the score is sent with no viewer. Only CrossWatch routes with an empty username whitelist and no user profile receive it.

#### Giving a score

<figure><img src="https://raw.githubusercontent.com/crosswatch-app/kodi-addon/main/docs/screenshots/rating/rate-score-focused.png" alt="The rating window"><figcaption><p>The rating window</p></figcaption></figure>

Focus starts on Skip, so pressing OK straight away sends nothing. Press Up to reach the scores and Left or Right to choose. The word for the score shows next to the question:

| Score | Word     | Score | Word        |
| ----- | -------- | ----- | ----------- |
| 1     | Awful    | 6     | Fair        |
| 2     | Very bad | 7     | Good        |
| 3     | Bad      | 8     | Great       |
| 4     | Poor     | 9     | Superb      |
| 5     | Average  | 10    | Masterpiece |

* OK on a score sends it.
* "Remove rating" asks CrossWatch to remove this person's rating.
* Skip, Back, or doing nothing for a minute sends nothing.

Starting playback closes the window and cancels any questions still to come.

#### Kodi's own rating

With "Write the rating to Kodi's library" on, the add-on also sets Kodi's user rating for the item, if it is in Kodi's library. Kodi has one user rating per item, so it is only written when everyone who scored agrees: a shared rating, a single viewer, viewers who gave the same score, or one score with the rest skipped. If the scores differ, Kodi's rating is left alone. "Remove rating" with no other score clears it.

{% hint style="info" %}
On a shared MySQL/MariaDB library, every profile and every Kodi device using that library sees the same user rating.
{% endhint %}

#### Where ratings go

CrossWatch decides which of your connected services receive a rating. The add-on has no say.

| Destination                     | Films | Episodes | Note                                   |
| ------------------------------- | ----- | -------- | -------------------------------------- |
| Trakt                           | Yes   | Yes      |                                        |
| Plex                            | Yes   | Yes      | The title must be in the Plex library. |
| MDBList                         | Yes   | Yes      |                                        |
| CrossWatch tracker              | Yes   | Yes      |                                        |
| Floppy                          | Yes   | Yes      | Needs a TMDb id.                       |
| Scrob                           | Yes   | Yes      | Needs a TMDb id.                       |
| PunchPlay                       | Yes   | Yes      |                                        |
| FlickList                       | Yes   | Yes      |                                        |
| WeTrakr                         | Yes   | Yes      |                                        |
| Simkl                           | Yes   | No       |                                        |
| AniList                         | Yes   | No       | Scores a whole anime entry.            |
| Kitsu                           | Yes   | No       | Scores a whole anime entry.            |
| MyAnimeList                     | Yes   | No       | Scores a whole anime entry.            |
| Emby, Jellyfin, Kodi, BingeBase | No    | No       | They take no rating.                   |

If a rating does not arrive, see Ratings do not arrive.

### Settings

Every add-on setting, with its default. Open them under **Add-ons** → **My add-ons** → **Services** → **CrossWatch** → **Configure**. Settings marked "Advanced level" only show after you switch Kodi's settings screen to the Advanced level.

#### CrossWatch settings

| Setting                       | Default | What it does                                                                                                                            |
| ----------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| Pair with CrossWatch          |         | Connects this Kodi to CrossWatch with a pairing code. See Pairing.                                                                      |
| Status                        |         | Read-only. "Paired with `<instance>` at `<address>`" or "Not paired". See The Status line.                                              |
| Unpair                        |         | Disconnects this Kodi from CrossWatch. Only shown while connected.                                                                      |
| Webhook URL                   | blank   | Advanced level. The CrossWatch endpoint, for a manual setup. Pairing fills it in.                                                       |
| Webhook token                 | blank   | Advanced level. The token, for a manual setup. Pairing fills it in.                                                                     |
| Device id (blank to generate) | blank   | Advanced level. Identifies this Kodi to CrossWatch. Leave it blank and the add-on makes one. A change takes effect after Kodi restarts. |

The device name CrossWatch shows is Kodi's own, set under **Settings** → **Services** → **General** → **Device name**.

#### Viewer settings

| Setting                            | Default          | What it does                                                                                                                                                                                                                                  |
| ---------------------------------- | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Configure viewers and playlists    |                  | Add, change or remove viewers. See Viewers.                                                                                                                                                                                                   |
| Remembered answers                 |                  | See, change or forget the answers remembered per show. See Remembered answers.                                                                                                                                                                |
| Ask who watched a film             | On               | Off: films that playlists and profiles do not settle are sent with no viewer instead of asking.                                                                                                                                               |
| Ask for a rating                   | Off              | Films, Episodes, or Films and episodes: ask for a score after a finished watch. See Rating.                                                                                                                                                   |
| When to ask                        | After each watch | Only shown when rating is on. "At the end, for everything watched" saves the questions until playback stops for good.                                                                                                                         |
| Shared rating                      | Off              | Only shown when rating is on. One question for everyone who watched, instead of one each.                                                                                                                                                     |
| Write the rating to Kodi's library | Off              | Only shown when rating is on. Also sets Kodi's own user rating. See Kodi's own rating.                                                                                                                                                        |
| Skip PlexKodiConnect playback      | On               | Playback through PlexKodiConnect is not reported, so that a household also running CrossWatch's Plex watcher does not count it twice. Off: it is reported, marked as PlexKodiConnect playback. Not yet tested against a real PlexKodiConnect. |

#### Advanced settings

| Setting                                                | Default | What it does                                                                                                                             |
| ------------------------------------------------------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Progress report interval (seconds)                     | 60      | 30 to 600. How often the playback position is sent while something plays, and after a seek.                                              |
| Playlist refresh interval (minutes)                    | 60      | Advanced level. 5 to 720. How often playlist membership is re-read. A library scan or clean and a settings change also trigger it.       |
| Enable debug logging (records viewing history to disk) | Off     | Writes a detailed log file, including titles and viewer names. Takes effect at once. Leave off unless you are troubleshooting. See Logs. |

### Troubleshooting

Problems listed by what you see. Several checks point at Kodi's log; Logs says where it is and what the add-on writes there. For problems on the CrossWatch side, see the troubleshooting section of the [Kodi](https://wiki.crosswatch.app/crosswatch/settings/connections/media-clients/kodi) page.

#### Nothing arrives in CrossWatch

1. **Status line.** "Not paired" means the add-on has no connection: pair. "Paired with ..." only means CrossWatch answered at some point, so go on.
2. **Kodi's log.** `reporter.failed` means CrossWatch could not be reached: check that it runs and that Kodi can reach the paired address. With `CERTIFICATE_VERIFY_FAILED` in it, the `https://` certificate is not trusted; it must come from a public authority such as Let's Encrypt. `reporter.rejected` with `status=401` means CrossWatch refused the token: pair again.
3. **The Kodi add-on in CrossWatch.** It must be switched on for this Kodi profile. Switching it off throws away this Kodi's token without any sign in Kodi; turn it back on and pair again.
4. **What you played.** Only episodes and films with a real id (TMDb, TVDb, IMDb and the like) are reported, and PlexKodiConnect playback is skipped by default. See What the add-on sends.
5. **An outage.** While CrossWatch was down, only finished watches were kept for later; the rest was dropped after two minutes. See When CrossWatch cannot be reached.

Pairing again after a token change drops finished watches still waiting for delivery, because they belong to the old token.

#### Playback arrives under nobody, or under the wrong person

* The viewer's name must match the name in that person's route "Username whitelist", or, for a route without a whitelist, the name of the user profile the route is assigned to (case and punctuation do not matter). A viewer showing "No CrossWatch route" is the giveaway; see below.
* With two or more viewers, someone has to be named: by a playlist, a profile, or an answer to the question at the end. A skipped question sends the watch with no viewer.
* A playlist that changes with playback, such as "Continue Watching", credits whoever owns it; see Smart playlists.
* A playlist wins over a remembered answer. In Remembered answers, a show marked "Covered by" is decided by that playlist, so fix the playlist rather than the answer.

#### The who-watched question never appears

It is skipped on purpose in several cases, such as a single viewer, playback stopped in the first three minutes, or autoplay moving on to the next episode. See the list under The question at the end.

It is also not asked for a show with a remembered answer; check Remembered answers.

#### A viewer shows "No CrossWatch route"

No route in CrossWatch accepts this viewer's name, so their playback goes nowhere. Check:

1. that the person has a Kodi watcher route in CrossWatch at all.
2. that the route's "Username whitelist" holds the viewer's name. Case and punctuation do not matter; anything else does. A route without a whitelist takes the name of the user profile it is assigned to instead, and nobody else.
3. if you just renamed the viewer, that the whitelist has the new name.

The line updates at the add-on's next check-in, within five minutes (at once after adding or renaming a viewer).

#### A person is missing from Add viewer

"Add viewer" lists only CrossWatch user profiles that are assigned to a route on this Kodi without a username whitelist, and leaves out people who are already viewers. Check:

1. that the person's Kodi watcher route in CrossWatch is assigned to their user profile, on the Kodi profile this add-on is paired with, and that its "Username whitelist" is empty. A route with a whitelist takes the names in it instead, so type the viewer's name to match the whitelist.
2. that no viewer is linked to them already; a viewer that shows "Name from CrossWatch" is.
3. that the add-on has checked in since the route changed: within five minutes. Close the Viewers window and open it again.

CrossWatch releases before v0.13.5 list no people, so "Add viewer" always opens the keyboard there. To add someone without a profile, select "Type a name".

#### A typed name is refused as the same as another

"CrossWatch treats this name as the same as `<name>`" means CrossWatch ignores case, spaces and punctuation when it compares names, so it could not tell the two viewers apart and would send both their playback to the same routes. Choose a name that differs in a letter or digit (an accent counts).

Only two people picked from CrossWatch's list may differ just in spaces or punctuation, because CrossWatch keeps two profiles like that apart. If both people have profiles, pick them instead of typing.

#### A playlist or profile shows as missing

The playlist or Kodi profile was renamed or deleted. Open that viewer's "Playlists" or "Profiles", untick the entry tagged "missing", tick the right one and press Done. While a playlist is missing, none of that viewer's playlists count.

#### A playlist shows as unusable

The playlist is not a playlist of TV shows or films, so it never credits anyone. It does not appear in the picker, so there is nothing to untick: open that viewer's "Playlists" and press Done to remove it. Or change the playlist's type to TV shows or Movies in Kodi.

If Kodi has no TV show or film smart playlists at all, the picker does not open. Make one in Kodi first, then close the Viewers window and open it again.

#### No rating question appears

"Ask for a rating" is Off by default. If it is on, see When it asks for the cases where it is skipped.

#### Ratings do not arrive

Look in Kodi's log for:

| Log line                                            | Meaning                                                                                                               |
| --------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `reporter.rejected` with `reason=unsupported_event` | Your CrossWatch is too old for ratings. Update it.                                                                    |
| `reporter.rejected` with `reason=no_rating_target`  | None of the matching routes takes this kind of rating, for example an episode rating for Simkl. See Where ratings go. |
| `reporter.rejected` with `reason=no_matching_route` | No route accepts the viewer; see A viewer shows "No CrossWatch route".                                                |
| `reporter.rated` with `failed=` above 0             | A service refused the rating. CrossWatch's log has the reason.                                                        |

#### Logs

The add-on's normal lines (failures, refusals, check-ins) go to Kodi's log, `kodi.log`. The [Kodi wiki](https://kodi.wiki/view/Log_file) says where to find it.

For more detail, switch on "Enable debug logging" in the Advanced settings. The add-on then also writes `crosswatch.log` in the `logs` folder of its data folder, `userdata/addon_data/service.crosswatch/logs/` (in another Kodi profile, under `userdata/profiles/<profile>/`; the [Kodi wiki](https://kodi.wiki/view/Userdata) says where `userdata` is). It is capped at 500 KB plus three older files, with times in UTC. Switch it off again when you are done, because it records titles and viewer names.

What the logs never contain: the webhook token and pairing codes. The normal lines in `kodi.log` carry no titles or viewer names either.

{% hint style="info" %}
One exception outside the add-on's control: with Kodi's own debug logging on, `kodi.log` records the one-time code that a Link hands over. It is used up by then.
{% endhint %}

### What the add-on sends

Everything goes to your own CrossWatch and nowhere else. CrossWatch then passes it on to the services you set up there.

#### What is sent

* **Playback**: start, pause, resume, progress and stop, for episodes and films.
* **A heartbeat** every five minutes, and straight away after pairing or a change of viewer names. It carries the names of all configured viewers, so CrossWatch can tell which of them have a route.
* **Ratings**, if you switched rating on: the score per viewer, with the same item details as a stop, minus the file path and playback position.

Each playback event carries:

* who watched: the viewer names, and whether a playlist, a profile or the question decided it.
* the item: title, year, season, episode and episode title, and the ids Kodi has (such as TMDb, TVDb, IMDb).
* playback: duration, position and progress.
* the file path, with any user name, password and query string removed.
* this Kodi: its device name, the add-on's device id and the add-on version.
* for PlexKodiConnect playback, the Plex rating key. That playback is only reported when "Skip PlexKodiConnect playback" is off; it is on by default.

Only episodes and films with at least one real id (such as TMDb, TVDb or IMDb) are reported. The ids can come from Kodi's library or from the add-on playing the item. Music, live TV and files Kodi knows nothing about are not reported.

The webhook token is sent in a request header, never in a URL.

Developers: the exact payload is the [contract](https://github.com/crosswatch-app/kodi-addon/blob/main/docs/contract.md).

#### When CrossWatch cannot be reached

The add-on keeps trying each event for two minutes, then drops it. An old progress or pause event is useless later and could even overwrite a newer resume point, so it is never sent late.

**A finished watch is the exception.** When a stop completes a watch (played to the end, or past Kodi's watched threshold, 90 percent by default, the `playcountminimumpercent` advanced setting), the add-on saves it to disk before sending, so it survives CrossWatch being down and Kodi restarting. It is then:

* retried every five minutes while Kodi runs, and straight away when Kodi starts.
* delivered with its original time, marked as a late delivery. Plex, Emby and Jellyfin record the watch at the time it happened; Trakt, Simkl and CrossWatch's own history record it when it arrives.
* dropped, with a warning in the log, when CrossWatch refuses it, when it is more than seven days old at Kodi's start, when more than 200 are waiting (the oldest goes), or when the token has changed since, for example by pairing with a different CrossWatch. A stored watch is never sent to a different CrossWatch.

Ratings are kept and retried the same way.

Kodi marks the item watched in its own library regardless. A dropped stop loses only who watched it.

The saved watches are in `outbox.json` in the add-on's data folder, `userdata/addon_data/service.crosswatch/` (in another Kodi profile: `userdata/profiles/<profile>/addon_data/service.crosswatch/`). No other event is written to disk.

### Getting help

Open an issue at [crosswatch-app/kodi-addon](https://github.com/crosswatch-app/kodi-addon/issues). Attach `kodi.log`, and `crosswatch.log` if you have one, but check them for anything you would rather not share first.

A Kodi forum thread will follow with the first stable release.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.crosswatch.app/crosswatch/settings/connections/media-clients/kodi/kodi-add-on.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
