Make media analysis stop wasting CPU on duplicate/repeated analysis

A couple of weeks ago I tried to the Plex Dance for albums and artists which have caused this issue, and it looked like it was resolved. but today I noticed that the issue was back.

Things that I observed for albums that seem to suffer from this issue:

  • Most albums don’t have a year set or is unknown. Plex seems to falls back to epoch - 1, which is a bit weird, because music can be from 1969-12-31.
  • Tracks or album titles have special characters in them. for instance: +, é, ' or

I’m wondering if the latter causes any issues, although that shouldn’t be case because the SQLite format should be UTF-8. I want to try if replacing or removing those will have any (positive) effect.

You can easily check if filenames have non ASCII characters under Linux with the following command: LC_ALL=C find . -name '*[! -~]*'.

Edit: I also still think this issue is related to the performance of my home server. I have an Intel 13500 and use all the P-cores (6, 12 with HT) for Plex. I have a feeling that there is a race condition where albums are possibly processed twice. Because all of the albums that have issues I notice (in the popup) that they will be processed multiple times. For instance, processing / analyzing a ‘good’ album should take something like 5 seconds, while a ‘bad’ album takes a minute or longer.