Re-optmizing videos after the original was replaced with a better quality

Okay so I ran the tests on a Windows PMS and here is what happened

  • have a movie
  • optimize the movie
  • delete movie from file explorer
  • add replacement movie file with file explorer
  • PMS automatically scans this replacement
  • 2 counter over movie is gone
  • optimized version is gone
  • PMS starts the optimize process on the replacement file
  • 2 counter is back over the movie when the optimization is complete

This is exactly what I expect to happen yet it doesn’t on my docker server!
I did run the same test scenario on my Docker server and the re-optimization does not happen. It gets stuck at deleted.

@anon18523487 Thoughts?

Can you provide me your full PMS zip of the logs from the Docker setup? What movie did you use in your test and around what time so I can find it quicker? I don’t know if the docker is doing something different but I can look.

I’m using Ubuntu and it doesn’t work for me. (no docker)

@anon18523487 Here are some logs. Frozen II was added as a replacement around 1255 and now shows as deleted in the optimizer queue.

Plex Media Server Logs_2020-02-16_15-17-00.zip (6.4 MB)

Edit: I just looked and the whole of S01 of Locke and Key shows as deleted. It would have been around 0745 yeasterday.

Is there a command to manually retry all deleted ones that I could just add to cron?

I’m running on Windows. I can’t see anything wrong on your latest log. PMS has identified the change in the original. I don’t know why it doesn’t re-optimize.

@rafisher79 What OS are you using?

Well that’s great… /s

Any ideas on a workaround? I like @rafisher79 idea. If it could be done via webhook I could work with that. Ideally force retry deleted items could be automated within PMS itself.

Using Ubuntu. Here’s something interesting:

I spun up my windows install, and ran the optimize on the same library, however, when the file was replaced by Sonarr, it did not do what it did when I used explorer. Perhaps its something in the way Sonarr removes the file and replaces it that is causing the issue.

That I don’t know, but anything possible.

My system is connected with sonarr and you didn’t see anything odd. I’ll play with the settings and see what happens

I didn’t see anything as in I didn’t see PMS failing to do anything it was told to. If Sonarr tells PMS something different or bypasses PMS’s normal routine, I can’t see that.

I don’t use Sonarr so I don’t know if this might cause some sort of conflict.

Fair enough

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.