
Autoscan
Intelligent real-time media library scanner for Plex, Emby, and Jellyfin
Autoscan - Smart Library Scanner
Autoscan is an intelligent media library scanning tool that replaces the default file system monitoring behavior of Plex, Emby, and Jellyfin. Instead of slow periodic scans, Autoscan uses webhooks and real-time notifications to detect new media instantly, making your library updates lightning-fast.
What is Autoscan?
Autoscan integrates with your media automation stack to provide:
- Instant Library Updates - New media appears immediately after download
- Webhook Integration - Connects with Sonarr, Radarr, Lidarr, and more
- Cloud Storage Support - Works with Google Drive and RClone mounts
- Smart Scanning - Only scans what changed, not your entire library
- Multi-Server Support - Trigger scans across Plex, Emby, and Jellyfin simultaneously
Why Use Autoscan?
Traditional media server scanning relies on periodic file system checks that can take 5-15 minutes. Autoscan reduces this to seconds by receiving direct notifications when new media is added, eliminating the wait and reducing server load.
Installation
Install Autoscan
Install Autoscan for a specific user:
qb install autoscan -u usernamePrerequisites
Autoscan requires at least one media server installed:
- Plex, Emby, or Jellyfin
And works best with download automation tools:
- Sonarr, Radarr, Lidarr, or RClone
Installation Process
During installation, Autoscan will automatically:
- Detect Installed Media Servers - Finds Plex, Emby, and/or Jellyfin
- Configure Webhooks - Sets up triggers for Sonarr, Radarr, and Lidarr
- Extract API Tokens - Retrieves authentication credentials automatically
- Map Library Paths - Discovers your media library locations
- Setup RClone Integration - Configures inotify monitoring if RClone is installed
Automatic Configuration
QuickBox Pro’s Autoscan installer automatically detects and configures all compatible applications on your system. No manual configuration required for basic operation!
CLI Commands
Basic Operations
| Command | Description |
|---|---|
qb install autoscan -u username | Install Autoscan with auto-configuration |
qb reinstall autoscan -u username | Reinstall (preserves config) |
qb update autoscan -u username | Update to latest version |
qb remove autoscan -u username | Remove Autoscan completely |
Usage Examples
Install Autoscan:
qb install autoscan -u myuserUpdate Autoscan:
qb update autoscan -u myuserReinstall (fix corrupted installation):
qb reinstall autoscan -u myuserRemove Autoscan and clean up:
qb remove autoscan -u myuserHow It Works
Architecture Overview
Autoscan operates as a webhook receiver that listens for notifications from your media automation tools:
Sonarr/Radarr → Download Complete → Webhook to Autoscan → Plex/Emby/Jellyfin ScanTraditional Scanning:
- Media server checks entire library every 5-15 minutes
- High disk I/O and CPU usage
- 5-15 minute delay before new media appears
Autoscan Scanning:
- Download completes in Sonarr/Radarr
- Webhook sent to Autoscan immediately
- Autoscan triggers targeted scan of only the new file
- Media appears in 5-10 seconds
Supported Integrations
QuickBox Pro automatically configures Autoscan with your installed applications:
Enhanced Features
Autoscan on QuickBox Pro includes several advanced features:
⚡ Instant Updates
Media appears in your library within seconds of download completion, not minutes
🔄 Auto-Configuration
Automatically detects and configures all installed media servers and *arr applications
🎯 Smart Scanning
Only scans changed files instead of entire libraries, reducing server load significantly
☁️ Cloud Integration
inotify monitoring for RClone mounts with real-time Google Drive detection
🔒 User Isolation
Per-user configuration and service instances for secure multi-user environments
📊 Priority Queue
Intelligent request prioritization ensures critical scans complete first
Configuration
Configuration File Structure
Autoscan’s configuration is located at:
Key Configuration Options
Scan Timing:
minimum-age: 2m30s # Wait time before scanning (prevents incomplete files)
scan-delay: 15s # Delay between scan requests (batch similar events)Authentication:
authentication:
username: your_username
password: your_passwordWebhook Port:
port: 3070 # Port for receiving webhooksMinimum Age Setting
The minimum-age setting prevents Autoscan from scanning files that are still being written. 2m30s is recommended to ensure complete file transfers before scanning.
Setting Up Webhooks
Sonarr Webhook Configuration
- Open Sonarr → Settings → Connect
- Click the + icon → Select Webhook
- Configure:
- Name:
Autoscan - URL:
http://localhost:3070/triggers/sonarr - Method:
POST - Username: Your Autoscan username
- Password: Your Autoscan password
- Name:
- Select triggers: On Import, On Upgrade
- Click Test then Save
Radarr Webhook Configuration
- Open Radarr → Settings → Connect
- Click the + icon → Select Webhook
- Configure:
- Name:
Autoscan - URL:
http://localhost:3070/triggers/radarr - Method:
POST - Username: Your Autoscan username
- Password: Your Autoscan password
- Name:
- Select triggers: On Import, On Upgrade
- Click Test then Save
Lidarr Webhook Configuration
- Open Lidarr → Settings → Connect
- Click the + icon → Select Webhook
- Configure:
- Name:
Autoscan - URL:
http://localhost:3070/triggers/lidarr - Method:
POST - Username: Your Autoscan username
- Password: Your Autoscan password
- Name:
- Select triggers: On Import, On Upgrade
- Click Test then Save
Multiple Instances
If you have Sonarr4K or Radarr4K, configure them with /triggers/sonarr4k and /triggers/radarr4k respectively. Autoscan handles both instances automatically!
Service Management
Autoscan runs as a systemd service for reliable operation:
Check Service Status
systemctl status autoscan@usernameRestart Service
systemctl restart autoscan@usernameView Live Logs
journalctl -u autoscan@username -fStop Service
systemctl stop autoscan@usernameStart Service
systemctl start autoscan@usernameAutomatic Startup
Autoscan is configured to start automatically on system boot and restart on failure for maximum reliability.
Advanced Features
RClone + inotify Integration
When RClone is installed, Autoscan automatically configures inotify monitoring for cloud storage:
Benefits:
- Real-time detection of files uploaded to Google Drive
- Instant library updates for cloud-based media
- Reduced API polling (better for API quotas)
Configuration:
triggers:
inotify:
- priority: 0
include:
- ^/home/username/rclone/gmedia/
exclude:
- '\.(srt|pdf|jpg|bmp|png|ico|nfo)$'Manual Triggers
Trigger a scan manually via HTTP request:
curl -X POST http://username:password@localhost:3070/triggers/manual \
-H "Content-Type: application/json" \
-d '{"path": "/path/to/media/folder"}'Priority System
Autoscan uses a priority queue for scan requests:
| Priority | Source | Typical Use |
|---|---|---|
| 0 | inotify | Real-time file system changes |
| 1 | Webhooks | Sonarr/Radarr/Lidarr notifications |
| 2 | Manual | User-initiated scans |
Lower numbers = higher priority = scanned first.
Troubleshooting
Common Issues
Webhooks not triggering scans:
# Check if Autoscan is running
systemctl status autoscan@username
# View recent logs for errors
journalctl -u autoscan@username -n 50
# Test webhook manually
curl -X POST http://username:password@localhost:3070/triggers/manual \
-H "Content-Type: application/json" \
-d '{"path": "/home/username/media/Movies"}'Scans taking too long:
Check your minimum-age setting - if it’s too high, scans will be delayed:
nano /home/username/.config/Autoscan/config.yml
# Adjust: minimum-age: 2m30s (or lower)Authentication errors:
Verify webhook credentials match your config:
cat /home/username/.config/Autoscan/config.yml | grep -A 2 authenticationMedia server not responding:
Check if your media server is running and accessible:
# For Plex
systemctl status plexmediaserver
# For Emby
systemctl status emby-server@username
# For Jellyfin
systemctl status jellyfin@usernameDebug Mode
Enable verbose logging for troubleshooting:
# Stop service
systemctl stop autoscan@username
# Run manually with debug output
cd /opt/username/Autoscan
./autoscan --config=/home/username/.config/Autoscan/config.yml --verbosity=debugPerformance Tips
Scan Delay Optimization
Do
- Use minimum-age of 2m30s for balanced performance and reliability
- Configure scan-delay of 15s to batch similar events efficiently
- Exclude metadata files (.nfo, .jpg, .srt) from inotify triggers
- Use priority 0 for inotify (real-time) and priority 1 for webhooks
- Test webhooks manually with curl before relying on automation
Don't
- Don't set minimum-age below 30s - files may be incomplete
- Don't forget to configure authentication for webhook security
- Don't run Autoscan as root - use per-user service instances
- Don't skip webhook testing in Sonarr/Radarr settings
- Don't use aggressive scan delays on limited hardware
Recommended Settings
Aggressive (instant updates, higher load):
minimum-age: 30s
scan-delay: 5sBalanced (recommended):
minimum-age: 2m30s
scan-delay: 15sConservative (batch updates, lower load):
minimum-age: 5m
scan-delay: 30sExclude Unnecessary Files
Reduce unnecessary scans by excluding metadata files:
triggers:
inotify:
- exclude:
- '\.(srt|sub|idx|nfo|jpg|png|txt|md)$'
- '/._'
- '\.DS_Store$'Use Cases
Automated Media Pipeline
Create a fully automated media delivery system:
- Sonarr/Radarr monitors shows/movies
- Download client fetches media
- Autoscan detects completion via webhook
- Plex/Emby/Jellyfin scans only the new file
- Media appears in your library within seconds
Cloud Storage Integration
Perfect for users with Google Drive or other cloud storage:
- Upload media to Google Drive
- RClone mounts drive locally
- Autoscan’s inotify detects new files
- Media server scans immediately
- Stream your cloud library instantly
Multi-Server Setups
Run Plex and Jellyfin simultaneously:
- Autoscan triggers scans on both servers
- Single webhook from Sonarr/Radarr updates all libraries
- Perfect for users transitioning between platforms
Related Applications
Autoscan works seamlessly with these applications:
Compatible Applications
Install these applications alongside Autoscan for a complete media automation stack
Resources
Join the Community
Media server operators sharing configs, getting support, and shaping the future of QuickBox Pro.