There's a Scan All, why isn't there a Refresh All and Analyze All?

Sometimes, you just want to refresh and re-analyze everything. I realize this is not a big deal for people who only have two libraries, but there are people (me) who have a lot.

There can be a case made for Scan All, but none for Analyze, nor for Refresh.
Why would one regularly need to re-Analyze and Refresh metadata of a whole library’s worth of media?
The technical data of your files usually don’t change over night. Nor do metadata on existing movies and series change frequently enough to justify such a computationally expensive practice.

On top of that, if there are a lot of media and/or a lot of libraries involved, the time required to finish these operation would be probably excessive.

If you really want to re-analyse and refresh regularly, there are options in the Scheduled Tasks, which are designed to integrate these processes into the daily server maintenance. The process will be spread out over several weeks, so that it won’t block server resources during the usage period.
And the time window of the server maintenance can be controlled by you, which is a definitive plus.

I see what you mean. I guess I’m a unique case :sweat_smile:

Thanks

Hint: if Plex detects during a regular library scan that a media file has changed, it should be getting analysed/re-analysed etc during the next server maintenance.
Maybe that could be enough for your purposes?

Also, if you use any of the *arr apps, I hear these can trigger these server operations selectively only on the items which have been replaced/recoded etc.

1 Like

I actually have the autoscan and autoscan-adapter scripts to analyze and refresh when changes are detected on disk. But just to be safe, once every few months, I like to re-analyze and refresh everything.

If it’s just for maintenance and “to be on the safe side”, use the Scheduled Tasks “Upgrade media analysis during maintenance” as well as “Refresh library metadata periodically”.
And maybe “Upgrade media analysis during maintenance” as well.
They should cover exactly this use case.

1 Like

You could also script it if you wish and issue a curl request to the server to update each libraries. So something like this …

curl -X GET http://192.168.1.x:32400/library/sections/1/refresh?force=1
curl -X GET http://192.168.1.x:32400/library/sections/2/refresh?force=1
curl -X GET http://192.168.1.x:32400/library/sections/3/refresh?force=1

… replace 192.168.1.x with your ip of your plex server and the sections 1, 2 and 3 are the libraries you have or want to refresh metadata for.

More details here https://support.plex.tv/articles/201638786-plex-media-server-url-commands and depending on your setup you may need to pass X-Plex-Token.

Very interesting. Thanks!

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