# Forcing and Update

**URL:** <https://forums.plex.tv/t/forcing-and-update/42892>\
**Category:** Dev/API Corner\
**Tags:** scanner-agent-dev\
**Created:** [September 16, 2013, 1:11pm UTC](https://forums.plex.tv/t/forcing-and-update/42892 "2013-09-16T13:11:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PiX64](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@PiX64](https://forums.plex.tv/u/PiX64)\
**Post date:** [September 16, 2013, 1:11pm UTC](https://forums.plex.tv/t/forcing-and-update/42892/1 "2013-09-16T13:11:55Z")

</div>

In my custom agent I noticed that the update function wasn't working quite right. &nbsp;I have fixed the issue so that I do not get any python exceptions on update only. &nbsp;What I am wondering is if there is a way to FORCE plex to go through and set ALL metadata on an update. &nbsp;Mainly what I am looking to do is with the Watched Status.

&nbsp;

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. &nbsp;If the watched/unwatched status changes on the source, I want to have plex pick it up upon the next UPDATE scan.

&nbsp;

is this possible to do? &nbsp;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.

---

<div class="post-metadata">

**Author:** ![PiX64](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@PiX64](https://forums.plex.tv/u/PiX64)\
**Post date:** [September 18, 2013, 5:10pm UTC](https://forums.plex.tv/t/forcing-and-update/42892/2 "2013-09-18T17:10:46Z")

</div>

how does one check the current watched status of a plex item? &nbsp;media.watched? &nbsp;it cannot be that easy

---

<div class="post-metadata">

**Author:** ![PiX64](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@PiX64](https://forums.plex.tv/u/PiX64)\
**Post date:** [September 18, 2013, 5:26pm UTC](https://forums.plex.tv/t/forcing-and-update/42892/3 "2013-09-18T17:26:06Z")

</div>

I am also still trying to figure out how to force plex to run through all of the update code in my custom agent. &nbsp;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. &nbsp;upon turbo scan or deep scan (UPDATE) it will in fact run through the code and update everything. &nbsp;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.

---

<div class="post-metadata">

**Author:** ![PiX64](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@PiX64](https://forums.plex.tv/u/PiX64)\
**Post date:** [October 4, 2013, 2:44am UTC](https://forums.plex.tv/t/forcing-and-update/42892/4 "2013-10-04T02:44:28Z")

</div>

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. &nbsp;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?!?

---

<div class="post-metadata">

**Author:** ![PiX64](https://avatars.discourse-cdn.com/v4/letter/p/f08c70/32.png) [@PiX64](https://forums.plex.tv/u/PiX64)\
**Post date:** [October 4, 2013, 2:53am UTC](https://forums.plex.tv/t/forcing-and-update/42892/5 "2013-10-04T02:53:38Z")

</div>

so i just noticed that if i use the refresh on the top level TV Show it works GREAT... if i use the refresh on the section, NADA!

---

<div class="post-metadata">

**Author:** ![rxp](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@rxp](https://forums.plex.tv/u/rxp)\
**Post date:** [December 1, 2013, 11:22am UTC](https://forums.plex.tv/t/forcing-and-update/42892/6 "2013-12-01T11:22:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 21, 2019, 12:06am UTC](https://forums.plex.tv/t/forcing-and-update/42892/7 "2019-12-21T00:06:26Z")

</div>

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