I've updated and merged a couple scripts into one to automate some annoying tasks after a library rebuild.
0. Triggers turbo scan of the library.
1. Finds unmattched items and triggers metadata agents to match them if they weren't matched when they were first found by the scanner. Prints out items which can't be matched.
2. Empties trash, cleans bundles and calls for optimization.
3. Finds partialy downloaded images, deletes them, and triggers redownload.
4. Deletes thumbnail cache files that haven't been used in a while to save hard disk space.
5. Deletes thumbnail cache files that are corrupted so they will be regenerated at next request.
6. Regenerates thumbnails in the size required by a the samsung and web apps so that the first browsing is fast.
7. Triggers media analysis and initial metadata load by visiting every item at least once so first browsing is fast.
Script can be found here:
https://github.com/petejorgen/plextools
You will need to at least modify it to match your file directory and server locations as well as select enter the thumbnails sizes used by the client you perfer.
Hope this is helpfull for somone.