Complete guide for integrating Youtarr with Plex Media Server.
- Overview
- Library Setup
- Youtarr Configuration
- Multi-Library Organization
- What You'll See
- Tips and Best Practices
- Troubleshooting
Youtarr provides full Plex integration with:
- Automatic library refresh after downloads
- Embedded MP4 metadata for rich display
- Channel poster artwork
- OAuth authentication for API token retrieval
- Multi-library support through subfolders
- In Plex, go to Settings → Manage → Libraries
- Click "Add Library"
- Configure as follows:
- Type: Other Videos
- Name: YouTube (or your preference)
- Language: Your preferred language
Choose the appropriate agent:
- Agent: Personal Media
- Scanner: Plex Video Files Scanner
- After creating the library, go to its settings
- Navigate to the "Agent" tab
- Configure "Personal Media" agent:
- Enable "Local Media Assets"
- Move it to the top of the agent list
- Optional: Enable "Prefer local metadata"
Point the library to your Youtarr download directory:
- Default:
/path/to/youtube - Or specific subfolder:
/path/to/youtube/__kids
- Go to Youtarr Configuration page
- Click "Get Key" next to Plex API Key field
- Log in with your Plex account
- Authorize Youtarr
- Token automatically populated
- Follow official Plex token guide
- Enter token in Configuration page
In Youtarr Configuration:
- Plex API Key: Your X-Plex-Token
- Plex IP: Server IP or hostname
- Plex Port: Usually 32400
- Use HTTPS: Enable if using SSL
- Plex YouTube Library ID: Select your library from dropdown
Youtarr automatically:
- Triggers library scan after each download
- Updates only the affected sections
- Handles multi-library setups intelligently
Separate content by purpose:
- Kids content with parental controls
- Music videos with different view modes
- Educational content for learning
- News/current events separately
-
Configure channel subfolders in Youtarr:
- Click settings icon on any channel page
- Set custom subfolder (e.g.,
__kids,__music)
-
Create separate Plex libraries:
Library: "YouTube - Kids" → /path/to/youtube/__kids Library: "YouTube - Music" → /path/to/youtube/__music Library: "YouTube - All" → /path/to/youtube -
Configure each library with appropriate settings:
- Kids library: Enable parental controls
- Music library: Use music-focused view
- Main library: Standard video view
See: docs/YOUTARR_DOWNLOADS_FOLDER_STRUCTURE.md
- Title: Video title with channel prefix
- Description: Full YouTube description
- Studio: Channel name for grouping
- Album: Channel name (alternative grouping)
- Genre: YouTube categories
- Release Date: Original upload date
- Poster: Channel artwork (poster.jpg)
- Thumbnail: Video thumbnail
- Enable "Local Media Assets" in Advanced settings
- Set "Prefer local metadata" for consistency
- Disable "Generate video preview thumbnails" to save resources
- Use Collections to group related channels
- Disable real-time monitoring for large libraries
- Schedule periodic scans instead
- Use specific library refreshes rather than full scans
- Use consistent naming for subfolders
- Plan structure early before adding many channels
- Keep subfolder names simple (no spaces or special characters)
- Same network: Ensure Plex and Youtarr are on same network
- Firewall rules: Allow port 32400 between containers
- Docker networking: Use bridge network or host mode
Problem: Cannot connect to Plex server
Solutions:
- Verify token is valid:
curl -H "X-Plex-Token: YOUR_TOKEN" http://PLEX_IP:32400/ - Ensure using admin account token
- Try regenerating token via OAuth
Problem: New videos don't appear
Solutions:
- Check Youtarr logs for scan errors
- Manually trigger library scan in Plex
- Verify library ID is correct in Youtarr
- Check folder permissions
Problem: Videos show without metadata
Solutions:
- Verify "Local Media Assets" is enabled
- Check embedded metadata:
ffprobe -v quiet -print_format json -show_format video.mp4
- Refresh metadata for specific items
- Clear Plex cache and rescan
Problem: Channel posters not showing or changing
Known Issue: Plex occasionally replaces poster.jpg with generated thumbnails
Workarounds:
- Refresh metadata for affected channels
- Lock poster in Plex (edit → poster → lock)
- Ensure "Local Media Assets" is prioritized
Problem: Plex cannot access files
Solutions:
- Check file permissions:
ls -la /path/to/youtube
- Ensure Plex user has read access
- For Docker: Check volume mount permissions
- Use same UID/GID for both containers
Problem: Wrong library refreshing
Solutions:
- Verify each library has unique path
- Check library IDs in Youtarr config
- Ensure subfolders are correctly set
- Test with manual refresh first
Direct API calls for troubleshooting:
# Get libraries
curl -H "X-Plex-Token: TOKEN" \
http://PLEX_IP:32400/library/sections
# Trigger scan
curl -X POST -H "X-Plex-Token: TOKEN" \
http://PLEX_IP:32400/library/sections/LIBRARY_ID/refresh
# Get library items
curl -H "X-Plex-Token: TOKEN" \
http://PLEX_IP:32400/library/sections/LIBRARY_ID/all