# Updated Agents - How to update all metadata?

**URL:** <https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035>\
**Category:** Metadata & Adding Files\
**Tags:** server-linux\
**Created:** [March 15, 2020, 2:11am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035 "2020-03-15T02:11:49Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antigravity\_83](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Antigravity\_83](https://forums.plex.tv/u/Antigravity_83)\
**Post date:** [March 15, 2020, 2:11am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/1 "2020-03-15T02:11:50Z")

</div>

I’ve updated and tidied up my metadata agents- and would like to refresh the metadata of my entire library.

However when I select “Refresh metadata” on anything, metadata doesn’t update or change? It still uses the old metadata from the old sources.

So how do you scap all existing metadata and update from new sources?

---

<div class="post-metadata">

**Author:** ![GraemeMiller](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/graememiller/32/1864_2.png) [@GraemeMiller](https://forums.plex.tv/u/GraemeMiller)\
**Post date:** [March 15, 2020, 3:32pm UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/2 "2020-03-15T15:32:58Z")

</div>

This would do it…

> **[Restart Plex Media Server Setup from Scratch | Plex Support](https://support.plex.tv/articles/201198426-restart-plex-media-server-setup-from-scratch/)**
>
> In some cases, you may decide that you wish to restart your setup on your Plex Media Server from scratch....

---

<div class="post-metadata">

**Author:** ![Antigravity\_83](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Antigravity\_83](https://forums.plex.tv/u/Antigravity_83)\
**Post date:** [March 15, 2020, 9:09pm UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/3 "2020-03-15T21:09:41Z")

</div>

I’m hoping that you’re joking!

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [March 16, 2020, 3:32am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/4 "2020-03-16T03:32:09Z")

</div>

There is one, possibly slow, option. I’ve never used it.

PMS tends to hang on to the original matching agent very tightly. If the agent ID changes, it’s considered new media. No watch history is carried over.

In scheduled tasks, see if this work.  
 ![Screenshot from 2020-03-15 23-29-37](https://global.discourse-cdn.com/plex/original/3X/9/a/9a6683e39c67cf5e2cd56a41d1aeebbb50104d81.png)

Do this in conjunction with:

1. Changing the default stacking in `Settings - Server - Agents` for all the appropriate types & subqueries

2. Edit each library section as well to use those new agents.

It may not move them all but all new will go to those agents.

---

<div class="post-metadata">

**Author:** ![Antigravity\_83](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Antigravity\_83](https://forums.plex.tv/u/Antigravity_83)\
**Post date:** [March 16, 2020, 3:42am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/5 "2020-03-16T03:42:53Z")

</div>

Thanks @ChuckPa - what if you keep the same “Agent” but change the order?

Will “Refresh Metadata” update anything to match the new order?

For example, previously I had all the agents ticked under my movie agent. Now I only want it to use The Movie Database only.

Can I update all metadata to only use The Movie Database?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [March 16, 2020, 5:12am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/6 "2020-03-16T05:12:11Z")

</div>

If you change the order, nothing will change.  
It will only impact future matches. Future matches will see the other agent first.

To force a change, you need to deselect (uncheck) the one you’re using now. That migration will take time as it goes through the slow process during maintenance.

We used to have an ‘Unmatch’ button. It would be great about now but it was taken away.

---

<div class="post-metadata">

**Author:** ![Antigravity\_83](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Antigravity\_83](https://forums.plex.tv/u/Antigravity_83)\
**Post date:** [March 16, 2020, 5:19am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/7 "2020-03-16T05:19:00Z")

</div>

Ok thanks. So whilst trying not to sound like a smart alec, what does “Refresh Metadata” actually do?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [March 16, 2020, 5:36am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/8 "2020-03-16T05:36:59Z")

</div>

The button in Plex/web tells it to

1. take all it knows
2. If not matched, match
3. Using the match info it has,
4. Fill in any missing pieces
5. while checking for updated pieces.

---

<div class="post-metadata">

**Author:** ![Antigravity\_83](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Antigravity\_83](https://forums.plex.tv/u/Antigravity_83)\
**Post date:** [March 16, 2020, 5:47am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/9 "2020-03-16T05:47:06Z")

</div>

Ok thanks. So it does all of that, but only from the original metadata source.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [March 19, 2020, 8:28am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/10 "2020-03-19T08:28:30Z")

</div>

FYI, Fix Match, Unmatch and Match are alive and well. They just aren’t available for single episodes or seasons, but only the tv show as a whole.

---

<div class="post-metadata">

**Author:** ![Antigravity\_83](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Antigravity\_83](https://forums.plex.tv/u/Antigravity_83)\
**Post date:** [March 19, 2020, 8:30am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/11 "2020-03-19T08:30:11Z")

</div>

Do any of these buttons refresh metadata with a change in metadata agent?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [March 19, 2020, 8:35am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/12 "2020-03-19T08:35:18Z")

</div>

They allow you to _change_ the match, i.e. unmatch removes the connection to a particular agent. You can do this as preparation for a subsequential new Match.

Fix Match allows you to change a match (and the agent!) directly. If you open the ‘Search Options’ dialog, you can select the agent and the language of the metadata that’s going to be used for this item.

> **[Fix Match / Match | Plex Support](https://support.plex.tv/articles/201018497-fix-match-match/)**
>
> Matching content is typically quite accurate if you follow the Media Preparation guidelines for naming and organizing your media files....

---

<div class="post-metadata">

**Author:** ![Antigravity\_83](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Antigravity\_83](https://forums.plex.tv/u/Antigravity_83)\
**Post date:** [March 19, 2020, 8:37am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/13 "2020-03-19T08:37:16Z")

</div>

Thanks Otto, what if you’re using the same Agent, but it’s been reordered? Will fix match pickup a change in Agent order?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [March 19, 2020, 8:40am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/14 "2020-03-19T08:40:05Z")

</div>

_What_ did you change?

Normally, even a Refresh Metadata should suffice.

Have you tried [https://support.plex.tv/articles/202967376-clearing-plugin-channel-agent-http-caches/](https://support.plex.tv/articles/202967376-clearing-plugin-channel-agent-http-caches/) ?

Try Unmatch, followed by Match.

---

<div class="post-metadata">

**Author:** ![Antigravity\_83](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Antigravity\_83](https://forums.plex.tv/u/Antigravity_83)\
**Post date:** [March 19, 2020, 8:43am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/15 "2020-03-19T08:43:56Z")

</div>

Thanks. Yeah I deleted the relevant cache. Didn’t do anything.

I unticked and rearranged sources in an agent.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [March 19, 2020, 8:47am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/16 "2020-03-19T08:47:41Z")

</div>

> [@Antigravity\_83](#):
>
> I unticked and rearranged sources in an agent.

please describe precisely what the order is now and which agent this is.  
do also verify that the item in question is actually matched to that agent, by looking at the `guid="...` property in the [Plex XML info](https://support.plex.tv/hc/en-us/articles/201998867-Investigate-Media-Information-and-Formats "Plex XML info").

give an example of the status quo of this item’s metadata, and how you are expecting it to change after your reordering of the agent.

---

<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:** [June 17, 2020, 8:47am UTC](https://forums.plex.tv/t/updated-agents-how-to-update-all-metadata/555035/17 "2020-06-17T08:47:55Z")

</div>

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