# Scanner Removing Match

**URL:** <https://forums.plex.tv/t/scanner-removing-match/769174>\
**Category:** Plex Media Server\
**Tags:** server-windows, apple-tv, scanner-agent-dev\
**Created:** [January 7, 2022, 8:32pm UTC](https://forums.plex.tv/t/scanner-removing-match/769174 "2022-01-07T20:32:24Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckalemkiewicz](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@ckalemkiewicz](https://forums.plex.tv/u/ckalemkiewicz)\
**Post date:** [January 7, 2022, 8:32pm UTC](https://forums.plex.tv/t/scanner-removing-match/769174/1 "2022-01-07T20:32:24Z")

</div>

Server Version#: 1.25.3.5385  
Player Version#:4.69.1

I’ve been going through my library and replacing some larger files with smaller version (e.g. going from a 10GB MKV to a 2GB MP4) and when I load the new file, it does not combine with the current movie like it used to. The scanner loads the new one just fine, but then it removes the match for the existing one. The file names are the same with the exception of the file extension. Let me give you an example. I had Lethal Weapon on the server as a 13GB mkv file. It was named Lethal\_Weapon\_1987\_1080p.mkv. It was matched a long time ago and part of a collection. No issues whatsoever. Trying to save some space, I downloaded a smaller version of the movie in mp4 format. I copied the name Lethal\_Weapon\_1987\_1080p.mp4 and moved to the server. Generally when this happens, it will combine the two items under the existing object, but for some reason, after the PMS upgrade, the scanner will match the new file and then remove the match from the old file. This has never happened before. I did think about the agent being different and so I did another test with Lethal Weapon 2 and made sure to re-match the movie, refresh the metadata and analyze it, before loading the new version. Same thing. It’s driving me nuts. I’ve done this a million times before and it just started acting like this with the new PMS update.

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [January 7, 2022, 8:48pm UTC](https://forums.plex.tv/t/scanner-removing-match/769174/2 "2022-01-07T20:48:16Z")

</div>

Sounds like you might have changed the default agent of your library since you added those movies originally but haven’t refreshed the library’s metadata… so the original movies still have an ID based on the old agent while the newly added file is using the ID provided by the new agent. Therefore Plex won’t know they’re the same and keep them separate.

---

<div class="post-metadata">

**Author:** ![ckalemkiewicz](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@ckalemkiewicz](https://forums.plex.tv/u/ckalemkiewicz)\
**Post date:** [January 7, 2022, 9:22pm UTC](https://forums.plex.tv/t/scanner-removing-match/769174/3 "2022-01-07T21:22:54Z")

</div>

I did update to the new Agent, so that may be it. I will refresh the metadata for the library and give that a shot. Thanks!

---

<div class="post-metadata">

**Author:** ![ckalemkiewicz](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@ckalemkiewicz](https://forums.plex.tv/u/ckalemkiewicz)\
**Post date:** [January 7, 2022, 9:46pm UTC](https://forums.plex.tv/t/scanner-removing-match/769174/4 "2022-01-07T21:46:45Z")

</div>

That didn’t work. I refreshed all the metadata for the entire library and then loaded a new file and it did the same thing.

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [January 7, 2022, 10:13pm UTC](https://forums.plex.tv/t/scanner-removing-match/769174/5 "2022-01-07T22:13:56Z")

</div>

How exactly are those files named – any embedded metadata?

---

<div class="post-metadata">

**Author:** ![ckalemkiewicz](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@ckalemkiewicz](https://forums.plex.tv/u/ckalemkiewicz)\
**Post date:** [January 7, 2022, 10:30pm UTC](https://forums.plex.tv/t/scanner-removing-match/769174/6 "2022-01-07T22:30:30Z")

</div>

No embedded metadata. I actually strip the files before loading to prevent that. Both the files that are already on the server and the new ones are named MOVIENAME\_MOVIEYEAR\_RESOLUTION.ext. I just tried it with Midommar. The existing file was Midsommar\_2019\_1080p.mkv. The file I loaded was Midsommar\_2019\_1080p.mp4. I do the resolution as I have some movies that have a 1080p and a 2160p.

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [January 7, 2022, 10:52pm UTC](https://forums.plex.tv/t/scanner-removing-match/769174/7 "2022-01-07T22:52:13Z")

</div>

Try renaming those files like this:

```nohighlight
Movies
  Midsommar (2019)
    Midsommar (2019) [1080p].mkv
    Midsommar (2019) [1080p].mp4

```

Then follow the [Plex Dance](https://forums.plex.tv/t/the-plex-dance/197064) procedure.

---

<div class="post-metadata">

**Author:** ![ckalemkiewicz](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@ckalemkiewicz](https://forums.plex.tv/u/ckalemkiewicz)\
**Post date:** [January 7, 2022, 11:13pm UTC](https://forums.plex.tv/t/scanner-removing-match/769174/8 "2022-01-07T23:13:17Z")

</div>

Okay. I’ll give it a shot.

---

<div class="post-metadata">

**Author:** ![ckalemkiewicz](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@ckalemkiewicz](https://forums.plex.tv/u/ckalemkiewicz)\
**Post date:** [January 8, 2022, 12:35am UTC](https://forums.plex.tv/t/scanner-removing-match/769174/9 "2022-01-08T00:35:00Z")

</div>

So, after I do the [Plex dance](https://forums.plex.tv/t/the-plex-dance/197064), it works. Which is bittersweet as I know what the issue is, but I still have about 2,000 things I need to replace so I will need to rename it all. Thanks for the help.

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [January 8, 2022, 12:43am UTC](https://forums.plex.tv/t/scanner-removing-match/769174/10 "2022-01-08T00:43:21Z")

</div>

You could check out FileBot to get this done more efficiently.

---

<div class="post-metadata">

**Author:** ![ckalemkiewicz](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@ckalemkiewicz](https://forums.plex.tv/u/ckalemkiewicz)\
**Post date:** [January 8, 2022, 12:48am UTC](https://forums.plex.tv/t/scanner-removing-match/769174/11 "2022-01-08T00:48:04Z")

</div>

I’ll do just that! Thanks for your help, Tom

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [January 26, 2022, 11:52pm UTC](https://forums.plex.tv/t/scanner-removing-match/769174/12 "2022-01-26T23:52:26Z")

</div>

2 posts were split to a new topic: [Disconnected Actor/Director entries for newly scanned movies](https://forums.plex.tv/t/disconnected-actor-director-entries-for-newly-scanned-movies/773100)

---

<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:** [April 26, 2022, 11:52pm UTC](https://forums.plex.tv/t/scanner-removing-match/769174/13 "2022-04-26T23:52:48Z")

</div>

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