Settings - Server - Library
Enable only one of the checkboxes
- Scan my library automatically
- Scan my library periodically
Enable none the above if you use an external script to add media, which then calls the Plex API per cmd line or URL API. (e.g. Sonarr etc.)