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.
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 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.
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.
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.
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.