Relocated files - poor 're match' rate

Hi,
I’ve moved my data to a new file server (the files were on a network drive before too).

I added the new directory to the library, leaving the original folder in tact, and performed a scan.

However, only 30-40% of films were ‘matched’ with the original entry - all others have created a second entry.

The overall file structure is unchanged, and all file names etc are exactly the same - I just copied the lot over.

I’ve begun merging the films together, but I’ve spent an hour on it and only got to ‘D’ - is there a better way of getting another pass of the matching, without losing custom/changed meta (eg, where I’ve changed sort title)

I tested a ‘Refresh’ of a handful of unmatched entries, together with the original entry, but this didn’t have any impact.

Happy to remove the new directory and start again if there’s something different i could / should have done.

Sounds like you may not have followed the naming guidelines. The matching algorithm is sometimes tweaked, but it is designed if you follow the guide, so if not, the matching may have worked at some point but not anymore. If you can provide a couple examples of filenames that don’t match, we can see if this is the problem. If you are following the naming guidelines, then please provide the scanner log that includes one of these files.

A few examples below

Just in case I wasn’t clear - the file (in the new folder) matched the film correctly - but didn’t pair it with the original file

\ares\films\2000s\Batman Begins (2005).mp4
\ares\films\2010s\Dracula Untold (2014).mp4
\ares\films\2010s\Edge of Tomorrow (2014).mp4
\ares\films\2010s\Gravity (2013).mp4

I’ve had a dig through the logs, and found the below entries for Gravity

Aug 04, 2016 19:20:07.672 [9536] DEBUG - Adding file for scanner: \\Diskstation\Media\Films\2010s\Gravity (2013).mp4 Aug 04, 2016 19:20:16.299 [9536] DEBUG - * Scanning Gravity (2013) Aug 04, 2016 19:20:16.299 [9536] DEBUG - Looking for path match for [\\Diskstation\Media\Films\2010s\Gravity (2013).mp4] Aug 04, 2016 19:20:16.300 [9536] DEBUG - Path matched, we're reusing media item 139581

Aug 04, 2016 19:21:05.877 [9536] DEBUG - Adding file for scanner: \\ares\films\2010s\Gravity (2013).mp4 Aug 04, 2016 19:21:12.529 [9536] DEBUG - * Scanning Gravity (2013) Aug 04, 2016 19:21:12.529 [9536] DEBUG - Looking for path match for [\\ares\films\2010s\Gravity (2013).mp4] Aug 04, 2016 19:21:12.532 [9536] DEBUG - Path matched, we're reusing media item 624311

Are you using the same agent for both versions? The movies are tied to the agent used, so if the movie was originally matched using Freebase and now you changed to TheMovieDB, these will be treated as 2 different movies. You can verify if this is the case by calling up the xml for both versions and looking at the guid value. They will be different.

Would that be these two lines (one from each…)?

guid=“com.plexapp.agents.imdb://tt1454468?lang=en”
guid=“com.plexapp.agents.themoviedb://49047?lang=en”

ouch - any workaround for this? No particular recollection of changing the agent, but it does seem to be the older stuff that hasn’t matched up.

If it’s a case of merging everything manually, is there any way to influence which one it ‘adopts’? From what I can tell, it doesn’t even prioritise custom / edited metadata - this is going to be a nightmare :frowning:

Is there a ‘hacky’ way of forcing the library to point to the new location?

@extrobe said:
Is there a ‘hacky’ way of forcing the library to point to the new location?

Very “hacky”
https://forums.plex.tv/discussion/comment/1080551/#Comment_1080551

Thanks - looks like it might do the trick - I’ll have to be mindful that I’ve gone from TV/Film/Music all being folders on the same root folder to being separate ‘root’ folders in their own right, (and music I haven’t moved at all), but it’ll be worth a shot!