Kometa-Team / Kometa

Python script to update metadata information for items in plex as well as automatically build collections and playlists. The Wiki Documentation is linked below.
https://kometa.wiki
MIT License
2.54k stars 307 forks source link

Playlist move item doesn't seem to work #2265

Open ronniehicks opened 1 month ago

ronniehicks commented 1 month ago

Version Number

2.0.2 (Docker: master)

What branch are you on?

master

Describe the Bug

After the first creation of the playlist, any attempt to reprocess and move items into the correct placement results in the following error, regardless of playlist:

[2024-10-10 15:07:13,844] [plex.py:645]               [ERROR]    | (404) not_found; (redacted)/playlists/23193/items/None/move <html><head><title>Not Found</title></head><body><h1>404 Not Found</h1></body></html> |
[2024-10-10 15:07:13,844] [builder.py:3505]           [ERROR]    | Failed to Move Constantine S01E01: Season 1: Episode 1                                             |

Relevant Collection/Overlay/Playlist Definition

playlist_files:
- file: config/playlists.yml
- default: playlist
  template_variables:
    libraries: Movies, TV Shows
    radarr_add_missing: true
    sonarr_add_missing: true
playlists: 
  One Chicago (Timeline Order):
    sync_mode: sync
    libraries: TV Shows
    trakt_list: https://trakt.tv/lists/5415197
    summary: One Chicago
    radarr_add_missing: true
    sonarr_add_missing: true
  The Walking Dead (Timeline Order):
    sync_mode: sync
    libraries: TV Shows
    trakt_list: https://trakt.tv/lists/25146121
    summary: The Walking Dead
    radarr_add_missing: true
    sonarr_add_missing: true


### Logs

_No response_
chazlarson commented 1 month ago

I can't reproduce an issue here with Kometa 2.0.2.

I added each of the five shows in the Chicago playlist one at a time to a test library, running this playlist after each, so every run would be adding new episodes and inserting them into the playlist.

Each run went fine with no errors; the playlist was updated as expected each run.

I then ran twice after everything was in the library and playlist with no errors.

chazlarson commented 1 month ago

Just repeated the experiment with Kometa 2.1.0 with the same result; no issues seen.

chazlarson commented 1 month ago

What's causing the issue here is that None should be an internal Plex ID:

(redacted)/playlists/23193/items/None/move

This is telling Plex to move an item with the ID of None within the playlist with ID 23193, which of course is going to fail and lead to: 404 Not Found since nothing will have that ID.

For some reason, Plex is having trouble getting its own ID for that item.

ronniehicks commented 1 month ago

Any idea what to look for and where to see if something is happening on the plex side?