Emby Integration Guide
Complete guide for integrating Youtarr with Emby Media Server.
Table of Contents
- Overview
- Library Setup
- Metadata Configuration
- Native Playlist Sync
- Channel Playlist Files (.m3u)
- Multi-Library Organization
- Advanced Settings
- Troubleshooting
Overview
Youtarr provides comprehensive Emby support through:
- NFO metadata files with complete video information
- Channel poster artwork
- Optional channel and video backdrop art
- Embedded MP4 metadata
- Multi-library support for content organization
- Compatible folder structure
- Native playlist sync: subscribed YouTube playlists appear as Emby playlists (see Native Playlist Sync)
Library Setup
Step 1: Add New Library
- In Emby, go to Settings → Library
- Click "Add Media Library"
- Select library type:
- Type:
Movies(current recommendation; see Choosing a library type below) - Display Name: YouTube (or your preference)
- Type:
Choosing a library type
Youtarr writes each video as a standalone "movie" with its own NFO metadata, so two Emby library types can read the library:
Movies(current recommendation): the most reliable option. Every video displays as a movie with full metadata and artwork. Limitation: Emby will NOT automatically import Youtarr's optional per-channel.m3uplaylist files as playlists; that only happens in Mixed Content libraries. See Channel Playlist Files (.m3u).Mixed Content: automatically imports the per-channel.m3ufiles as Emby playlists, but Emby's own documentation notes that "support for mixed content is limited", and its TV-detection heuristics can misclassify channel content as TV series: video titles that look episode-like ("Season 3", "Episode 12") can be picked up as episodes and display with wrong metadata. This tends to work on smaller libraries and break as the library grows, since more titles means more chances for a false match.TV Shows: not currently supported. Writing videos and metadata in a way that is compatible with TV Shows libraries is on our roadmap but is not supported yet.
Step 2: Add Media Folders
Configure folder settings:
- Click "Add" to add folder
- Browse to your Youtarr download directory
- For specific content types, use subfolders associated to different libraries:
/path/to/youtube/__kids/path/to/youtube/__music/path/to/youtube(all content)
Step 3: Configure Library Settings
In the library configuration:
Metadata downloaders:
- NFO (enable and move to top)
- Disable all internet providers (TheMovieDb, etc.)
Metadata savers:
- Disable: Nfo ("Save metadata to NFO")
Warning: Do NOT enable Emby's NFO metadata saver. Youtarr generates and maintains the
.nfofile for every video it downloads. If the saver is enabled, Emby will update and overwrite those files with its own data (for example, incorrectly guessed season/episode tags), which can cause problems for your library.
Image fetchers:
- Local Images (enable)
- Disable all internet image providers
Advanced Settings:
- Save artwork and metadata into media folders: No (see the NFO saver warning above)
- Prefer embedded metadata: Yes
- Enable real-time monitoring: Optional
Metadata Configuration
NFO Support
Emby reads comprehensive NFO files containing:
- Title: Video title with channel name
- Plot: Complete YouTube description
- Premiered: Original upload date
- Year: Upload year (keeps Emby's production year accurate for sorting)
- Studios: Channel/creator name
- Genres: YouTube categories
- Tags: Video keywords and topics
- Runtime: Video duration
- Unique ID: YouTube video identifier
Artwork Configuration
Youtarr provides:
poster.jpg: Channel artwork in channel folders<VIDEO NAME>.jpg: Video thumbnails in video foldersbackdrop.jpg: Channel background art from the YouTube channel banner, written when "Create backdrop images" is enabled in Settings -> Core (off by default)<VIDEO NAME>-backdrop.jpg: Per-video background art from the video thumbnail, controlled by the same setting (new downloads only)- Proper naming conventions for Emby recognition
Embedded Metadata
MP4 files include:
- Title and description
- Upload date
- Channel information
- Genre/category tags
- Ensures basic info even without NFO
Native Playlist Sync
The library and metadata setup above is all you need for downloaded videos to show up in Emby. Playlist sync is separate: connect it only if you want your subscribed YouTube playlists to appear as native Emby playlists.
Step 1: Create an Emby API key
- In Emby, go to Settings -> Advanced -> API Keys
- Create a new key for Youtarr and copy it
Step 2: Connect Emby in Youtarr
- In Youtarr, open Settings -> Emby Integration
- Enter the Emby URL and the API key from Step 1
- Open the Emby User dropdown and pick the account that should own the playlists. (Youtarr loads the user list from your server; you can also enter the user ID by hand.)
- (Optional) Leave Video Library IDs blank. Youtarr matches downloaded videos to Emby items across all your libraries.
- Click Test Connection, then turn on Enable Emby integration
Once connected, open a playlist in Youtarr and turn on its Emby sync chip. See Media Server Playlists for how syncing, ordering, and updates work.
Connecting Emby also enables watch status sync: Youtarr periodically pulls per-video watch state (played, percent watched, last watched) for every user on the server and shows it as Watched chips and filters on its listing pages. It's one-way; Youtarr never marks anything watched on Emby. Emby decides when a video counts as played: edit the library and set Max resume percentage; stop after that point and the title counts as fully played. Settings live under Settings -> Watch Status; see Track Watch Status from Media Servers.
Visibility
A playlist marked Public in Youtarr is created as a server-wide (shared) Emby playlist that all users can see; a Private one is owned by the configured user account only. Emby sets this when the playlist is created, so changing Public/Private for a playlist that already exists takes effect on the next sync that recreates it. Emby also shows shared playlists as read-only, which is expected: Youtarr owns these playlists and rewrites them on every sync.
Channel Playlist Files (.m3u)
Separately from playlist sync, each channel has an optional "Generate channel playlist file (.m3u)" setting that writes a <Channel Name>.m3u playlist at the top of the channel folder (see Channel playlist file).
Whether Emby picks that file up as a playlist depends on the library type:
- Mixed Content: Emby imports the file automatically as a (read-only) playlist during library scans, and picks up changes on later scans.
- Movies: Emby ignores the file. This is expected behavior, not a bug.
If you keep the recommended Movies library type, you can still open the file directly in any .m3u-capable player (VLC, mpv, Kodi).
Multi-Library Organization
Setting Up Multiple Libraries
Create content-specific libraries:
-
Library Structure:
"YouTube - Kids" → /youtube/__kids
"YouTube - Music" → /youtube/__music
"YouTube - Education" → /youtube/__education
"YouTube - General" → /youtube -
Configure Each Library:
- Kids: Parental controls enabled
- Music: Music visualization options
- Education: Documentary settings
- General: Standard movie configuration
Benefits of Separation
- Access Control: User-specific library access
- Organization: Easier content discovery
- Performance: Faster targeted scans
- Customization: Per-library settings
Advanced Settings
Library Options
Configure in Advanced settings:
Content:
- Preferred download language: Your language
- Country: Your region
- Rating country: For parental controls
Display:
- Date added behavior: Use file creation date
- Enable chapter image extraction: No (not needed)
- Extract chapter images during scan: No
Real-time Monitoring:
- Enable for immediate updates
- Disable for better performance with large libraries
Metadata Options
Metadata Settings:
- Prefer local metadata: Yes
- Save metadata within media folders: No (Emby would overwrite Youtarr's
.nfofiles; see the NFO saver warning in Library Setup) - Save subtitles within media folders: Yes (if using)
Image Settings:
- Save artwork within media folders: No (see the NFO saver warning in Library Setup)
- Download images in advance: Your preference
- Enable thumbnail generation: Optional
Troubleshooting
Videos Not Appearing
Problem: Library scan completes but videos missing
Solutions:
- Verify library type is "Movies"
- Check NFO files exist:
find /path/to/youtube -name "*.nfo" -type f - Ensure NFO metadata source is enabled
- Review Emby logs:
tail -f /var/lib/emby/logs/embyserver.txt
Channel .m3u Not Appearing as a Playlist
Problem: A channel's "Generate channel playlist file (.m3u)" setting is on and the file exists on disk, but no playlist shows up in Emby
Cause: The library type is Movies. Emby only imports playlist files from Mixed Content libraries; this is expected behavior, not a bug. See Channel Playlist Files (.m3u) for alternatives.
Channel Displays as a TV Series
Problem: In a Mixed Content library, a channel (or some of its videos) shows up as a TV series with seasons/episodes and broken metadata
Cause: Emby's mixed-library TV-detection heuristics misread episode-like video titles. Emby's own documentation notes that support for mixed content is limited.
Solution: Change the library to Movies (or recreate it as Movies) and rescan. Channel .m3u playlists will no longer auto-import; see Choosing a library type for the tradeoff.
Metadata Not Loading
Problem: Videos appear without descriptions
Solutions:
- Confirm NFO reader is first in providers
- Verify NFO content:
xmllint --noout /path/to/video.nfo - Check "Prefer embedded metadata" is enabled
- Manually refresh metadata for items
Artwork Issues
Problem: Missing channel or video posters
Solutions:
- Verify poster.jpg files exist:
- Check image permissions and format
- Clear Emby cache:
- Dashboard → Advanced → Clear Cache
- Rescan library with "Replace all metadata"
Permission Denied
Problem: Emby cannot access media files
Solutions:
- Check file permissions:
ls -la /path/to/youtube - Fix ownership if needed:
sudo chown -R emby:emby /path/to/youtube - For Docker: Verify volume permissions
- Check SELinux/AppArmor if applicable
Duplicate Entries
Problem: Videos appear multiple times
Solutions:
- Check for overlapping library paths
- Remove duplicate library entries
- Clean library: Dashboard → Scheduled Tasks → Clean Database
- Verify no symbolic link loops