Sometime in the past few weeks the behavior of Scan Library Files has changed. I’m not sure if this intended or if it’s a bug, but any time I add new media and then run Scan Library Files (Movies or TV) it will rescan everything that’s already present and download and replace all of the metadata for everything in the library. This is getting particularly annoying since any shows or movies where I’ve changed the poster or other data will have it set back to the default. The scan also takes longer than it did and many shows/movies become unavailable while the scan runs.
Previously when I scanned the library for new media using Scan Library Files, none of the existing items were changed or altered from the scan.
Is this an expected behavior change? How can I get it back to ONLY scanning and adding metadata for new items?
Edit: Some additional info…
Running server version 1.13.8.5395 on FreeBSD.
Edit: SOLVED 2/9/19 - I finally tracked down what was causing this problem. It seems that I’d stumbled onto some odd behavior based upon how my TV library folder was structured.
I’d wanted to create two libraries for TV shows, one of which contained all of my shows and another that were shows I didn’t mind the kids watching, which I called Public. To do this, I structured my TV folder in a nested fashion, with “TV Shows” containing subfolders with the shows only for the parents to see and a subfolder called Public which were meant for clean shows. It looked like this:
/media/TV Shows
----Show 1
----Show 2
----Show 3
d—Public
------Show 4
------Show 5
------Show 6
I then created a library ‘TV Shows’ which only linked to the ‘Public folder’ and another one, ‘TV Shows - All’ which linked the parent ‘TV Shows’ folder. The expectation was that it would display all shows directly within the ‘TV Shows’ folder along with what was contained in the ‘Public’ subfolder. They looked like this:
TV Shows - All
linked to: ‘/media/TV Shows’
TV Shows
linked to: ‘/media/TV Shows/Public’
The problem I had was that with the ‘TV Shows - All’ library, it didn’t actually include the shows within Public. It was at this point that I realized I could just add multiple folders to a library, so I added ‘/media/TV Shows’ and ‘media/TV Shows/Public’, which successfully included all of the shows. Now, that library looked like this:
TV Shows - All
linked to: ‘/media/TV Shows’
linked to: ‘/media/TV Shows/Public’
It was this library, ‘TV Shows - All’, in this state, which was having the problem in my OP. Every time I’d scan for files again, it would reset all customized metadata and settings.
This morning, I was revisiting this issue and looking at library settings and scan logs and realized this was the only library with a weird nested folder thing going on. It dawned on me that perhaps this wasn’t really a supported structure since libraries were clearly designed to link to multiple disparate folders anyway.
To confirm this, I removed the ‘Public’ folder from the library and rescanned. It did not reset the metadata for the remaining shows, even after scanning a few times. I then moved the Public folder out and directly under /media as ‘/media/TV Shows - Public’. The folder structure now looks like this:
/media/TV Shows
—Show 1
—Show 2
—Show 3
/media/TV Shows-Public
—Show 4
—Show 5
—Show 6
I then added the newly moved Public folder back to the TV Shows library and rescanned, which now looks like this:
TV Shows - All
linked to: ‘/media/TV Shows’
linked to ‘/media/TV Shows - Public’
Once everything was populated, I made a few manual changes to the library (changed a few posters, set Seinfeld to DVD order, etc) and then rescanned a few times. Now the behavior is as expected. Any existing media retains its custom settings and no metadata resets.