In my custom agent I noticed that the update function wasn't working quite right. I have fixed the issue so that I do not get any python exceptions on update only. What I am wondering is if there is a way to FORCE plex to go through and set ALL metadata on an update. Mainly what I am looking to do is with the Watched Status.
On initial scan and adding of a file to the directory , Plex now correctly sets the watched status based on the JSON returned from my source. If the watched/unwatched status changes on the source, I want to have plex pick it up upon the next UPDATE scan.
is this possible to do? It seems like it should be easy enough, but eventhough my update scan is finishing, the metadata doesn't seem to be changing inside of plex.
I am also still trying to figure out how to force plex to run through all of the update code in my custom agent. it seems willy nilly as to when it actually wants to run through the code. for example If I scan the a directory and force it to miss the poster art. upon turbo scan or deep scan (UPDATE) it will in fact run through the code and update everything. but if just a watched status changes it will not run through the code.. at least it doesn't appear to based on the fact that I get no logging in the log file for the custom agent.
So i noticed that in plex web if i do a turbo scan or a deep scan of the entire section, the watched/unwatched doesn't seem to update based on the source. BUT if i go into an individual item season 1 episode 1 of whatever show for example, and use the refresh button on the left of the web page it will go out and putt the most recent watched status from my source. WHY do i have to go into the item, why does scanning the section not result in the same thing? its the same code running, same update function in my agent?!?
I just noticed the exact thing. I cannot refresh the meta data for the entire section, but I have to manually go into each show and refresh from there.