Skip to content

[BUG] TMDB ID Not Extracted #1209

@artifaxx

Description

@artifaxx

Describe the bug
Currently Yamtrack tries to extract the tmdb_id value from the Item.ProviderIds.Tmdb field. The payload currently received from Jellyfin does not have a value in that location, but instead has it in the Series.ProviderIds.Tmdb field.

To Reproduce
Watch an episode for which there is no TMDB External ID configured.

Expected behavior
Yamtrack falls back to extracting from the Series details.

Screenshots
Trimmed down payload received in the webhook.

{
  "Event": "Play",
  "Item": {
    "ExternalUrls": [
      {
        "Name": "IMDb",
        "Url": "https://www.imdb.com/title/tt6848982"
      },
      {
        "Name": "TMDB",
        "Url": "https://www.themoviedb.org/tv/73613/season/1/episode/2"
      }
    ],
    "ProviderIds": {
      "Imdb": "tt6848982"
    }
  },
  "Series": {
    "Name": "La Mante",
    "OriginalTitle": "La Mante",
    "ExternalUrls": [
      {
        "Name": "IMDb",
        "Url": "https://www.imdb.com/title/tt6467482"
      },
      {
        "Name": "TMDB",
        "Url": "https://www.themoviedb.org/tv/73613"
      }
    ],
    "ProviderIds": {
      "Imdb": "tt6467482",
      "Tmdb": "73613",
      "Tvdb": "322885"
    }
  }
}

Error logs

[2026-02-16 07:52:27 -0800] [189] [INFO] Extracted IDs from payload: {'tmdb_id': None, 'imdb_id': 'tt6848982', 'tvdb_id': None}
[2026-02-16 07:52:27 -0800] [189] [INFO] Received webhook for tv: La Mante S01E02
[2026-02-16 07:52:27 -0800] [189] [WARNING] No matching TMDB ID found for TV show

Yamtrack version:
Database: SQLite (default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions