Library Maintenance
Norri checks your folders for new or changed files, completes imported items’ metadata and artwork, and refreshes existing online details separately. A completed file scan does not mean every background task has finished. This guide explains what runs automatically and which operation to use when you need to make a change.
The Four Operations
Norri has four distinct maintenance operations. Each one has a specific purpose. Some run automatically on a schedule, and all can be triggered manually from a library’s settings page.
Library Scan
What it does: Finds new files, marks missing files unavailable, restores returning files, and matches new media from your metadata sources.
Details:
- Checks your library folders for new, changed, moved, or deleted media files
- Reads the technical details of each new file, such as codecs, resolution, and tracks. This reads media headers rather than decoding the entire file; the time needed depends on the file and storage
- Identifies media from filenames, file tags, and supported local metadata, with online matching and artwork when enabled
- Files that have been removed from disk are marked as unavailable, with their library records retained
- Files that return to their original paths become available again
- Compares files with the previous check so unchanged items do not need a full import again
The first scan imports the files in the selected folders. Norri processes several folders at once within the scan worker limit, and seasons of a large TV show can share that capacity with other work. You can browse imported items while the scan continues. The first import has more work to do than later checks; its duration depends on the library, storage, and metadata providers.
Later checks compare the files themselves, including size and modification time, rather than relying only on the folder’s timestamp. A movie re-check normally stays in its title folder. A TV re-check normally processes changed episodes and any changed show or season metadata without importing every episode again. A first check, changed library settings, or an incomplete previous record can require a broader check.
Music tracks can be browsed and played after their local import while Music Metadata and Artwork completes online matching, details, and pictures. Unfinished lookups are retained for retry without another scan. Your metadata preferences and locked fields apply throughout.
Re-reading the technical details of existing files is a separate operation, Analyze Files, described below. See Unavailable Files for restoring missing media without losing its library records.
Automatic checks:
- Startup Scan is enabled by default. When the server starts, it runs a full Library Safety Check to catch files added while the server was offline. It counts as the next scheduled safety check.
- Automatic File Detection uses filesystem notifications where available. Norri also checks every library periodically, every 30 minutes by default, including folders with notifications. This helps with network shares and missed events.
- Norri groups nearby file-change events and checks for files modified within the last 3 seconds before importing them. If files are still arriving, or a folder changes during its import, that work is retained for retry after a 5-second minimum delay. The next available task run may be later; these delays are not a promise that a copy is complete or an item will appear within a fixed time.
Safety Checks and Catching Up
Scheduled Deep Rescan queues a full Library Safety Check. It checks inside all library folders to catch changes missed by routine detection, imports new or changed items, and reconciles missing or returning files. Unchanged items do not need a full metadata import. This is also how Norri catches up when a library needs a complete check; it does not replace all online metadata.
The safety check is enabled by default with a 12-hour interval measured from the last check’s start. A Startup Scan counts as a check, so with it enabled the next check is due 12 hours after startup. Without a Startup Scan, Norri saves the time across server restarts, and an overdue check is queued after startup rather than waiting another 12 hours. On a server with no saved start time, the first interval begins at startup. Actual work runs when the scheduler can admit it, and unfinished checks are retained across restarts.
File discovery uses the available scan workers while nothing is playing and reduces its work during playback. Other background tasks can wait for playback or library work to finish. Catching up on a large library can therefore continue over several task runs. Check the scan and background task statuses separately.
Update Metadata
What it does: Refreshes existing items from the library’s metadata sources without searching for new media files.
Details:
- For movies and TV, checks TMDB’s change lists and retries retained failed updates. A title that fails does not prevent other titles from being processed
- For music, refreshes album and artist details from online sources when enabled, including unfinished lookups; use Scan Now to read changed local files
- Applies the library’s NFO preferences and preserves locked fields and artwork
- Refreshes affected artwork and fills missing images where available; it does not replace every saved image merely because an update was requested
Music libraries also retry pending lookups after a temporary provider failure. A lookup gets a few quick tries while the rest of the work finishes, then waits for the next run and is tried at most once a day. Each failure is recorded in the logs. Already imported tracks remain playable, and manually edited or locked metadata is preserved. A provider can ask Norri to wait before retrying, so an immediate refresh may leave a lookup pending.
Daily Metadata Update
Movie and TV libraries have a daily TMDB sync, enabled by default at 3 AM in the server’s time zone. It checks TMDB’s change lists and retains failed titles for a later attempt while continuing with other titles. Music uses the separate Music Online Refresh task below.
After each movie or TV library’s sync, Norri also refreshes community scores and vote counts for up to 1/30 of its eligible titles, rounded up, oldest first. Titles refreshed within the last 30 days are not due. This covers ratings that change without appearing in TMDB’s change lists, aiming for a roughly monthly cycle rather than refreshing every score every night. These are community scores, not the age ratings used for content restrictions.
Online metadata must be enabled. NFO preferences and field locks still apply. Movies with a manually confirmed or selected identity, or a movie-level or identity lock, are excluded from these incremental TMDB updates. TV updates preserve the show’s locked fields. An offline provider, interrupted run, or busy server can delay the cycle.
Replace Metadata
What it does: Requests a full metadata refresh instead of only checking for reported changes. The library’s source preferences and locks still apply.
When to use:
- After a database issue or migration
- If you suspect metadata is incorrect or incomplete
- If you want to pull newly available artwork (like logos) that weren’t available when items were first added
Details:
- Re-fetches source-provided details and artwork for existing items, where available and allowed by the library’s settings
- Replaces eligible metadata and artwork while preserving locks and source priorities; music’s manual metadata choices remain protected
- Cast and crew biography and photo work is handled separately by People Enrichment and person-page lookups
- Does not scan for new files. Use Library Scan for that
Caution
Replace Metadata can take a long time for large libraries. It requests more provider data than an incremental update. Progress is shown in the sidebar and on the library settings page. A confirmation prompt is shown before this operation starts.
No automatic schedule: This operation is manual only, triggered from the library settings page.
Analyze Files
What it does: Re-reads media files to update their technical details (codec, resolution, audio, HDR, tracks). This is the same information first read when a file is added during a Library Scan.
When to use:
- To refresh the technical information for existing files without changing their metadata
- If technical information appears incorrect or missing
- After a Norri update, if its release notes recommend refreshing file information
Details:
- For movies and TV shows, updates codec, resolution, bitrate, HDR format, audio tracks, and subtitle information
- For music libraries, updates codec, bitrate, sample rate, duration, and channel information
- Does not contact any metadata sources or change any metadata
- Does not download or change artwork
No automatic schedule: This operation is manual only, triggered from the library settings page.
Background Tasks
Some work does not need to finish before you can browse or play your media. Norri runs this as background tasks that fill in over time. See Settings → Scheduled Tasks → Background Tasks for their status and available controls.
Choose how each configurable task runs:
- Quiet hours: run automatically within the configured nightly window.
- Manual only: start it with Run now. Manual runs are also available when quiet hours are selected.
New configurable background tasks default to a quiet window of midnight to 8 AM, using the server’s time zone. Change Quiet window starts and Quiet window ends for each task to suit your household. Updating Norri keeps your saved windows.
Playback takes priority. Norri pauses affected background work and resumes it when eligible. The quiet window limits when automatic work can run; it does not guarantee that the task runs throughout that window. Norri responds to its own playback, transcoding, and library scans, but does not pause automatically for work in other applications on the computer.
Music Metadata and Artwork
After local music import, this task completes online matching, album and artist details, track information, and artwork. It also retries work left unfinished by an unavailable provider or interrupted import. Artists credited only on other artists’ tracks are processed after the pending albums. You can browse and play imported tracks while this work is pending.
The task is marked Automatic. It starts when music needs online enrichment, so it has no schedule or Run now control. Its status appears on the music library’s edit page and under Settings → Scheduled Tasks → Background Tasks. Reload the page to see the latest status.
Pending work survives server restarts. The task waits while a library scan or playback takes priority, and retries later if a provider is unavailable or asks Norri to wait. Library metadata preferences and locked fields still apply. Libraries using NFO only (offline) make no online metadata or artwork requests.
Music Online Refresh
This task revisits already matched albums and artists to pick up changes from their online sources. It is separate from completing a new import. By default, it runs during the nightly quiet window.
A check can pick up MusicBrainz corrections, new artist biographies and pictures, album descriptions, reviews, and scores from TheAudioDB, and current popularity from ListenBrainz. It also looks for covers for albums that have none.
For each music library, the task selects up to 1/90 of its matched albums and artists combined, rounded up, minus items already checked in the task’s recent 24-hour window. It starts with items never checked, then those checked longest ago. An item checked within the last 90 days is not due. Multiple editions of an album count as one album for this selection.
Successful online checks during import, an artist rematch, or Update Metadata count toward the allowance. A manual album rematch does not currently reset the album’s refresh date. A failed check remains due for a later run. The intended cycle is about 90 days, but provider failures, recent imports, disabled tasks, or unavailable quiet hours can make it longer.
Library metadata preferences, NFO settings, and locked fields still apply. Libraries with online metadata turned off, or using NFO only (offline), are skipped. Use Settings → Scheduled Tasks → Background Tasks to set the task’s quiet window or select Run now.
Extract Keyframes
Norri reads the internal structure of each video file to find where it can safely split the video into segments for streaming. This keeps seeking, the progress bar, and subtitle timing accurate.
This background task reads more of each video than a library scan needs for its basic codec and format information. It prepares seeking information for videos in your libraries.
Playback can start before this task finishes. The file format affects what happens next:
- Matroska (MKV) files carry a built-in index, so Norri reads their split points the moment you press play, remembers the result, and later playback can reuse that index.
- Other containers, such as MP4, AVI, or TS, take longer to read, so the background task prepares them ahead of time. If you play one before the background task has reached it, playback can use a fallback seek index. Seeking becomes more precise once the background task has processed it.
People Enrichment
When movies and shows are imported, Norri records their cast and crew. Profile photos can be downloaded when displayed, and this task fills missing photos and biography details in the background when online metadata is allowed.
Opening a person’s page also requests their first biography if Norri has not checked it before. A slow response can be saved after the page opens; revisit the page to see it. This does not repeatedly fetch a biography that is already present.
If TMDB has no biography, Norri waits at least 90 days before asking again. Each night it rechecks up to 1/90 of the people previously checked without a biography, rounded up, oldest first, with recent checks counting toward that allowance. Newly encountered people can still receive their first lookup. This is a retry for missing biographies, not a 90-day refresh of every existing biography.
The task fetches up to four people at once. These network requests can run alongside library file work, with the results saved when the library is available. It does not fetch a person’s complete online filmography.
Extract Trickplay Thumbnails
Trickplay thumbnails are the small preview images that appear when you drag along the progress bar, so you can find a scene by eye instead of guessing.
Norri builds them by sampling frames from each video and stitching them into image sheets. Doing that during a scan would slow it down badly, so it runs as a background task instead.
Existing previews remain available. If previews are missing, you can still play and seek without them. Previews become available after this background task finishes processing the video. Playing or scrubbing does not start thumbnail generation.
Use Settings → Scheduled Tasks → Background Tasks to set the task’s quiet window or select Run now. The task waits while playback has priority.
Individual users can turn previews off for themselves under Settings → Playback. See Video Player for what they look like in use.
Running Operations Manually
Go to Settings → Libraries, select a library, and scroll to the Library Actions section. Each operation has its own card with a description and action button.
Select Scan Now, Update, or Analyze on the corresponding card to request that operation. Replace shows a confirmation prompt first. A requested scan can wait for earlier work; a queued scan starts automatically when it can run. If Norri reports that an operation is already running, wait for it to finish before trying again.
Progress for library operations is shown on the library settings page, in the sidebar, and in the header bar. You can navigate away and the operation continues in the background. Background task status is shown separately on the library settings page and under Settings → Scheduled Tasks.
While Norri is still discovering files, files processed so far shows completed work without a final percentage or estimated finish time. Counts labeled files in this folder apply only to the current folder. Changes between checking files and fetching metadata are normal as items are processed. Check the overall scan status to see whether the requested operation has finished or needs attention.
Configuration
You can configure automatic tasks in Settings → Scheduled Tasks (admin only).
| Setting | Description | Default |
|---|---|---|
| Startup Scan | Run a Library Safety Check when the server starts; counts as a scheduled check | Enabled |
| Scheduled Deep Rescan | Check all library folders for changes routine checks may miss | Enabled |
| Deep rescan interval (hours) | Hours between safety-check starts, including a Startup Scan; saved across restarts | 12 |
| Daily Metadata Update | Check movie and TV changes and refresh a share of community ratings | Enabled |
| Daily Metadata Update Time | Time of day for Daily Metadata Update (24-hour format) | 03:00 |
| Parallel scan workers | Limit on work processed simultaneously during library scans | Auto |
Select Save Changes after changing these settings. Startup, deep rescan, and metadata schedule changes take effect after a server restart. A changed worker limit applies to the next library scan. Background task controls save separately when you change them.
Scan Workers
Library scans can process several independent movie folders, TV shows, or music albums at once. Seasons of a large TV show can use available workers alongside other folders. Norri refills available slots as work completes, including during a first import. Parallel scan workers sets the maximum for this work. Discovery uses that capacity when nothing is playing and stays lighter during playback; online services also have their own request limits.
Leave Auto selected for normal use. Norri chooses a limit based on the server’s available CPUs.
You can select a specific limit instead. More workers can increase memory use and demand on your disks or network share. Storage speed and online provider limits also affect scan time, so increasing the value does not always make a scan faster. Reduce it if scanning makes your server or storage less responsive.
Best Practices
- Choose off-peak hours: Set Daily Metadata Update and configurable background tasks to run when your server is least busy, typically overnight.
- Keep Scheduled Deep Rescan enabled: This catches file edits that routine folder checks may miss. Increase its interval if you want these thorough checks less often.
- Keep Startup Scan enabled: This catches any files added while the server was down.
Conflict Prevention
Norri automatically prevents tasks from interfering with each other:
- Queued library scans wait for earlier work and start automatically
- Background music retries wait while library scans or playback take priority
- If an operation stops making progress, Norri can stop it and report a failure. Check its error and your folder access before retrying
Locked Fields & Artwork
You can lock individual metadata fields and artwork on any item’s edit page. Locked items are never overwritten by any automatic or manual maintenance operation.
What can be locked:
- Text fields: title, original title, overview, tagline, content rating, genres, cast, crew
- Artwork: poster, backdrop, logo, cover (music)
How locking works with each operation:
- Library Scan: Imports new or changed files and matches new media. Existing locked fields are preserved
- Update Metadata: Skips locked metadata fields and locked artwork types
- Replace Metadata: Same as Update Metadata. Locked fields and artwork are preserved even when everything else is re-fetched
- Analyze Files: Only updates technical data, such as codecs, resolution, HDR format, and tracks. Descriptive metadata and artwork are unchanged; existing valid keyframe data can be reused
To lock or unlock fields, go to the item’s edit page and click the lock icon next to any field or artwork type.
Quick Reference
| Operation | Scans files? | Updates metadata? | Downloads artwork? | Analyzes files? | Respects locks? | Automatic? |
|---|---|---|---|---|---|---|
| Library Scan | Yes | New/changed items | As needed, including background completion | New/changed files | Yes | Yes |
| Update Metadata | No | Movie/TV changes; music refresh and pending lookups | Affected or missing images | No | Yes | Movie/TV daily sync; separate music task |
| Replace Metadata | No | Full refresh of eligible items | Re-fetches eligible artwork | No | Yes | No |
| Analyze Files | No | No | No | All items | N/A (no metadata) | No |
Troubleshooting
Tasks not running
Check that the task is enabled and, for tasks with quiet hours, that the server is inside the configured window. Playback or a library scan can delay background work. Check the task’s status under Settings → Scheduled Tasks and use Run now where available. If it reports a failure, check server logs for the error before retrying.
New files not appearing
- Wait for the copy to finish, and verify the file is in a monitored library folder
- Check that the file extension is supported (.mkv, .mp4, .avi, .flac, .mp3, etc.)
- Try running a manual Library Scan from the library settings page
- Check server logs for scanning errors
Metadata not updating
- Check that the item has a valid match (TMDB for movies/TV, MusicBrainz for music)
- Check online metadata, NFO preferences, and locks; a refresh does not override your selected source
- Use Update Metadata for an existing library, or Replace Metadata when a full refresh is needed. Use Scan Now for changed local files
- Check the relevant task’s status and server logs for API errors. Automatic ratings and music refreshes cover a share of the library, not every item each night
“A scan or metadata operation is already running” message
A previous operation is still in progress. Wait for it to complete, then try again. You can check progress in the sidebar or on the library settings page.