I have several items that are unavailable in plex. After some time, unavailable items get moved to the trash, is there anyway I can “force” all unavailable items to go to the trash asap? Calling some task via API or something?
‘Scan library files’
Once that is done, ‘Empty trash’.
There is a checkbox called “Empty trash automatically after every scan” under
Settings - Server - Library
However, it is not recommended to activate it if your media storage is not local, inside your plex server device.
Otherwise you will regularly lose manually changed metadata.
Thanks, running that task now, didn’t know it did that as well behind the scenes… I have one more question, do you know what task would update the media_item_count column in the “metadata_items” of the plex DB? For example, I scan in my library, 3 items match to the same episode. So media_item_count for that metadata_item would be 3. I then split apart the media, manually match them to different metadata_items, but the count for that original metadata_item is still 3 in that row, but is only linked to 1 media_item (I checked this manually). Would doing a library scan fix this as well?
Sorry, I have no idea about that.
What are the practical results from this?
I have a script that monitors the plex db and does actions on metadata_items with multiple media_item_count, either a manual fix will be required or an automatic fix by my script
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.