LizardByte/Themerr-plex

Same movie in multiple libraries will show "failed to download"

Duglim opened this issue · 13 comments

Describe the Bug

If a movie is present in multiple libraries, it will only show up as green "Themerr provided" in the first Library. While the theme is also playing in all other libraries, they flag it a "failed to download".

A common case to have a movie multiple times is different libraries for "Movies" and "4K Movies". Internally they share the same metadata, since the movie is the same.

Log exerpt:

DEBUG (plex_api_helper:114) - item title: Star Trek (4K UHD)
DEBUG (plex_api_helper:185) - Not overwriting locked theme for movie: Star Trek (4K UHD)

Expected Behavior

If a theme is already available, show it as green "Themerr provided" in the Web UI.

Additional Context

No response

According to the logs you provided... The theme is locked, so it won't be overwritten. There's a setting to allow ignoring the lock.

It's nothing to do with the same movie being in multiple libraries. Themerr doesn't care about that or keep track of it in any way.

Okay, could you explain what "locked" means and what causes a locked theme file?

I can confirm, that a theme song is beeing played on the movie, just the web UI still shows "failed to download".

When you manually change a poster (for example), that poster will be locked.

In the early days of Themerr, every theme was locked by default. In a recent version of Themerr we started unlocking themes... but themes that were already locked by Themerr would not be updated.

So if you have never gotten themes from anywhere except themerr, it's safe to overwrite locked themes.

Thanks for explaination.

I installed Themerr yesterday evening the first time ever.
I assume, having multiple libraries with same movies has some interferences.

Here you can see it:

  • Normal movies were recognized to 53%, all fine.
  • the other 3 libraries (same new plex agent) also have correct themes playing, but the web UI has 0% recognized.

Again, to be clear: It's just the UI. There ARE in fact theme songs playing in all libraries.

Bildschirmfoto 2024-02-20 um 15 26 58

I assume, having multiple libraries with same movies has some interferences.

It doesn't. We work with the rating key of each item, which is unique.

I suspect this is actually related to #323

Could you test the build from https://github.com/LizardByte/Themerr-plex/actions/runs/8089835832?pr=356 ?

You need to be logged into to GitHub in order to download the artifacts.

Edit: Actually this is published in the latest release. If you could let me know if the issue persists or not, it would be appreciated.

Closing due to no response.

Did not fix it. I copied over the new version and had it running a few days.

I need a reproduction example, as I can't reproduce this... and it doesn't make sense because every item in Plex gets a different rating key, even if they are the "same" movie... according to Plex they are not the same. Themerr works with the rating key as well.

You can see below, I have the same movies in 3 different libraries... they all work. We also unit test this.

image

image

image

Bildschirmfoto 2024-03-30 um 18 07 53

There is a change now.
What does a yellow line mean?
Red = no theme available?
Green = Available and downloaded?

I can't read that language. Show it in English.

You can leave this issue closed.
I updated to the latest version and now it's all fine. All green and percentage is also calculated correct. :)
Great. Just needed to run the "update metatdata" in Plex again.

Thumbs up!

Glad it's working!

Just needed to run the "update metatdata" in Plex again.

This isn't really necessary (depending on your config options)... it will themes and the UI cache update on a schedule. Default is every 1 hour.