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.44k stars 303 forks source link

Empty trash doesn't seem to work #2176

Open Skaronator opened 1 month ago

Skaronator commented 1 month ago

Version Number

v2.0.2

What branch are you on?

master

Describe the Bug

I've enabled plex.empty_trash: true yet Kometa doesn't seem to empty the trash for my libraries.

This is my configuration:

    plex:
      url: https://plex:32400
      token: <<SECRET_PLEX_TOKEN>>
      clean_bundles: true
      optimize: true
      empty_trash: true

But after running Kometa it doesn't clean the trash of my movies and TV series. As you can see, I have items that look like this: image

I checked the code and noticed that I've to define each library explicitly, so I had added my tv show library, but both movies and tv show libraries doesn't empty the trash.

Here is my full, currently deployed, configuration: https://github.com/Skaronator/homelab/blob/main/kubernetes/media/kometa/values.yaml#L28

Relevant Collection/Overlay/Playlist Definition

No response

Logs

https://gist.github.com/Skaronator/08cdba1e39b26f6b09e3544a752d66f6

chazlarson commented 1 month ago

It appears that there's an issue where the values from the config doesn't make it down to the library:

grep -i -e "trash" config/logs/meta.log
[2024-07-29 15:15:12,606] [config.py:193]             [DEBUG]    |   empty_trash: true
[2024-07-29 15:15:15,516] [kometa.py:623]             [DEBUG]    | Empty Trash: False

grep -i -e "optimize" config/logs/meta.log
[2024-07-29 15:15:12,606] [config.py:193]             [DEBUG]    |   optimize: true
[2024-07-29 15:15:15,516] [kometa.py:624]             [DEBUG]    | Optimize: False

grep -i -e "clean" config/logs/meta.log
[2024-07-29 15:15:12,606] [config.py:193]             [DEBUG]    |   clean_bundles: true
[2024-07-29 15:15:15,516] [kometa.py:622]             [DEBUG]    | Clean Bundles: False