Skip to content
On this page

Scanning And Matching

A scan finds the media files in a folder, reads what is already known about them, and matches each one to a title. It is progressive: useful early results first, then better ones as stronger evidence arrives. The folder's own settings, such as its type and whether it trusts existing NFO files, steer every step.

For every folder setting see Folders, and for the click-by-click setup see Add your first folder. When a scan misbehaves, Scan found too few and Scan stuck or slow start from the symptom.

Stage 1: File Discovery

MetaTana walks the folder, filters likely media files, and records file facts such as path, extension, size, modified time, and folder context.

It also notices supporting files such as NFO, artwork, subtitles, and trailers so they can inform later metadata decisions.

Discovery skips hidden folders and NAS or system housekeeping folders such as @eaDir, #recycle, @Recycle, #snapshot, $RECYCLE.BIN, and System Volume Information, plus Sample folders, so NAS snapshots and sample clips never become library items.

Stage 2: Filename And Folder Evidence

Filename parsing extracts useful hints:

  • title-like text
  • year
  • season and episode numbers
  • absolute episode numbers
  • edition or version text
  • quality and technical tags
  • language and subtitle hints

A folder's declared type wins over filename guesses. If a folder or an accepted match says the item is anime, show, or movie, a misleading filename never overrides it.

An Anime folder holds anime films as well as series. A file named like a film, with a title and a year and no episode number, that is the only video in its folder (Anime/Spirited Away (2001)/Spirited Away (2001).mkv) is matched and stored as a film. Trailers, featurettes and samples beside it stay extras.

A new folder is added as mixed unless MetaTana's check of its contents finds only one kind, so episodes in a folder that also holds movies are not forced to be movies. Inside a mixed folder, a Home Videos, Home Movies, Family Videos, Family Movies, Camera Roll or DCIM folder holds your own videos: its files keep their own names and are never looked up, unless a file's NFO names a TMDb, TVDB or IMDb ID. A phone or camera clip such as IMG_1234.MOV, or a clip named by the day it was filmed such as 2018-12-25 Christmas Morning.mp4, is never read as an episode or a year, is not looked up in a mixed folder, and always waits for you to check it. When a file's name says little (no title and year, no S01E01), a Movies, TV or Anime folder inside a mixed folder tells MetaTana what to look it up as, so Movies/Unsorted/VID_20240101_0001.mkv is searched as a movie. A clear file name always wins over the folder. A folder under an Anime path is sampled as anime when it contains episodes, unless a nearer TV folder gives a different hint. Set Advanced › Folder type when you add the folder to force one type. In a Home videos & other folder nothing is identified: a file with its own NFO takes the title, year, and other fields from it (provider IDs in it are ignored, and MetaTana never rewrites it); otherwise the file keeps its own file name as its title (a disc folder its folder name). Each file goes straight to your Library and never counts as unscraped.

More filename rules:

  • Multi-episode files keep every episode. Show.S01E01-E03.mkv, Show.S01E01E02.mkv, Show.S01E01.E02.E03.mkv, Show - S01E01-S01E03.mkv, and Show 1x01-03.mkv are stored as each episode they cover, not only the first. A range up to 100 episodes wide expands in full; a wider range is read as its first episode.
  • Episode numbers go up to four digits. Show.S01E1234.mkv is episode 1234, not 123.
  • Anime version suffixes are not part of the number. - 05v2, E05v2, S01E05v3, and 1x05v2 are all episode 5.
  • Creditless openings and endings are extras. NCOP, NCED 2, NC.OP1, Creditless OP, and Creditless Ending 2 clips are stored as extras, never as episodes.
  • A file name that starts with the episode number has no show title. S01E01 - Pilot.mkv is season 1, episode 1, with the episode title "Pilot" (the same goes for 1x02 - Title.mkv). The show comes from the show folder (see Stage 5).
  • Season 2024 is a season. A year-numbered season folder, common for daily shows, is season 2024, never a show title.
  • Dropped apostrophes and accents still match. Title comparison ignores them, so Bobs Burgers matches Bob's Burgers and Amelie matches Amélie.
  • Plex edition tags are read as the edition. Blade Runner (1982) {edition-Final Cut}.mkv is Blade Runner (1982), Final Cut edition. The tag is not part of the title, so files renamed with the Plex preset match the same title and edition on the next scan.
  • A name ending in "Edition" is read as the edition. Mad.Max.Fury.Road.2015.Black.and.Chrome.Edition.1080p.mkv is Mad Max Fury Road (2015), Black and Chrome Edition.

Stage 3: Local Metadata

Existing NFO and sidecar files give MetaTana a starting point. It can import provider IDs, title fields, people, studios, tags, ratings, artwork, and episode facts from local sidecars before using network providers.

Local artwork beside a new file is imported during the scan even when Autopilot handles the provider work, so a movie dropped with its poster shows it right away. A -poster.jpg or -fanart.jpg in the file's own folder is read first. A plain poster.jpg or fanart.jpg is read only for a movie in a folder of its own; a movie directly in a library folder, or in a folder shared with other movies, reads only the - versions. A movie never reads artwork from the folder above its own. Local artwork only fills empty slots.

Local metadata matters because many users have already curated libraries in another tool or player. A multi-episode NFO (several blocks in one file) is read as the full episode list.

When an episode NFO and the file name disagree on the season or episode number, the NFO's numbers win and the file waits in the Inbox. The file name keeps its numbers when it or its folder marks a special and the NFO names a regular season, or when the NFO also names a different title or media type.

A root tvshow.nfo supplies the show title without replacing episode titles read from filenames. Episode NFOs, provider titles, and titles you saved still take priority.

An episode file under a show's tvshow.nfo with no episode number, such as the disc rip Westworld/Season 1/Westworld Season 1 Disc 1_t02.mkv, keeps its show and season and waits in the Inbox until you pick which episode it is. Rename, Organize and NFO writes leave it alone until then.

A folder can trust its existing NFOs and artwork (Trust existing NFOs and artwork in this folder under More options in the folder's Edit folder drawer on Folders). Titles identified from an NFO with provider IDs then skip the provider search in Stage 5, providers only fill fields that are still empty, and Autopilot does not rescrape those titles or rewrite their NFOs unless Replace NFO files that came with your media is on for the folder. They are still renamed and tidied as the folder's Rename files in this folder says, with the NFO moved along unchanged. A folder with no choice yet behaves as trusted; after its first scan MetaTana turns trust on when more than half of the scanned titles have an NFO with provider IDs, and off otherwise. See NFO and artwork.

If an imported NFO value targets a locked movie field or a locked season label or overview, MetaTana keeps the stored value and keeps the NFO value as a suggestion to review, instead of overwriting the locked field during the scan.

Library Edit fields… (the Quick edit dialog) can lock the values it writes when you tick Lock after editing, which is off by default. Locked values survive later scans, scrapes, and sidecar writes.

A provider refresh from Metadata tasks (in Library › Needs attention) follows the same rule for movies and episodes: locked fields stay as they are, new provider values become suggestions, and a replacement is written only after you choose it.

Background scrapes and NFO repairs for titles, shows, and seasons use the metadata as it is when they run, not as it was when they were queued. Locked values and locked empty fields survive a retry or a background repair.

Collection repairs work the same way. When MetaTana rewrites the NFO files of the movies in a collection, each movie's locked fields and artwork choices are applied first.

Stage 4: Technical Metadata

For each media file, MetaTana runs MediaInfo locally and stores codec, resolution, duration, container, HDR, audio, and subtitle facts on the file row.

Rescan all files on a folder also re-reads unchanged files, so older titles get their technical facts filled in without waiting for a scrape or Reload media info.

A Blu-ray or DVD folder gets the facts of its main feature, so its resolution, codec, HDR, audio, subtitles and 3D show on its page and in Library columns and filters like any file's. So does a disc image (.iso): MetaTana reads the Blu-ray or DVD folders inside it without unpacking it.

  • Blu-ray: the longest playlist. A menu that plays one short clip over and over for hours doesn't count as long. Some discs hide the movie among many playlists of about the same length, or carry a full-length extra (a storyboard version) that runs a little longer than the movie; MetaTana then takes the one whose clips add up to the most data, then the longer one, then the one with the most chapters, then the one with the most audio and subtitle tracks. Its running time and track languages come from the playlist, the rest from the clip it plays longest. A Blu-ray 3D disc shows MVC. A disc with no playlist MetaTana can read uses its largest .m2ts file.
  • DVD: the title set that plays longest. If MediaInfo finds no video in its first VOB file, MetaTana reads the next one.

Play on a Blu-ray or DVD folder plays its main feature: the playlist's clips in order, or on a DVD the VOB files of its largest title set. In the desktop app your video player gets them as one playlist. Play on a disc image (.iso) plays the same main feature in MetaTana's player. In the desktop app, Play hands your system the image itself.

The Size and Size per hour columns, the File size filter, the title page, the Stats storage total and each folder's size on Folders show the size of that main feature. A disc image shows its own size.

A disc folder or disc image scanned by an earlier version gets its technical facts on the next scan of its folder. Only the facts are read: its match stays as it is. If the disc can't be read then (a share that stopped answering), scans try it again a day later. Reload media info on its page reads them right away.

Stage 5: Provider Enrichment

Configured providers improve identity and fill fields. Common provider roles:

  • TMDB for movie, TV, episode, people, collection, and artwork metadata
  • TheTVDB for TV and episode metadata
  • OMDb for IMDb-linked metadata and ratings
  • Fanart.tv for extended artwork
  • MDBList for aggregate ratings
  • AniList and MyAnimeList for anime identity where set up
  • Trakt ratings, once Trakt is connected

Provider data is stored with its source so the app can tell which provider supplied which field.

Posters and details keep filling in while a long scan is still running. Provider lookups slow to one at a time during the scan instead of waiting for it to finish.

When a provider can't answer

A provider outage never reads as "No match found". When TMDb or another provider can't be reached or is limiting requests, the item says so, for example "Couldn't reach TMDb. Try again later with Retry failed or Rescrape." A missing or rejected API key says what to fix instead, for example "TMDb rejected the API key. Check it in Settings, then Rescrape." AI Vision is not used for these items, so an outage never spends AI credits. Later scans and Autopilot runs try a title that failed only because a provider couldn't answer again a few times before it waits for you.

Episodes: the show first, then the episode

An episode file does not have to name its show:

  1. The show folder names the show. The folder above the file (skipping one Season 01 or Specials folder) fills in a missing show title, so Breaking Bad (2008)/Season 01/S01E01 - Pilot.mkv works. A year in the folder name (Doctor Who (2005)) sets the show's year. Category folders (TV Shows, Anime, Movies) and generic ones (Extras, Disc 1) never name a show, and a file whose own name names a different show keeps it.
  2. The show is looked up once. A tvshow.nfo or a provider ID in the folder name still comes first. Next, a show you already matched for that folder (by Scrape, an NFO, or by hand) is reused with no provider call. Otherwise MetaTana runs one provider search for the folder's title and year. A 1,000-episode series costs one show search per scan, not one per file.
  3. Each file keeps its own episode. A file with a season and episode number is placed on the matched show. An absolute number (Title - 12) or an air date goes to the Inbox with the show already matched, and you only pick which season and episode it is. Two exceptions. When the show matched on TMDb, MetaTana reads the show's season list once per show in a scan and places the number from the season sizes: a number inside season 1 is that season 1 episode (Cowboy Bebop - 05 becomes S01E05). A number in a later season is placed too when TMDb also says how the show numbers its later seasons: starting again at 1 in each season, or counting on from season 1, in which case the episode keeps its absolute number inside that season, as TMDb lists it. Specials don't count. A number past the last season, a list that doesn't say how later seasons are numbered, or a show you set to absolute episode order still goes to the Inbox. When the show matched a single AniList or MyAnimeList entry (one season or cour, with no TMDb or TVDB match), an absolute number that fits inside that entry's episode count is accepted as season 1. MetaTana stores that episode count once the show is confirmed, so files you add to the show later are placed the same way with no provider call. A number past the end of the entry still goes to the Inbox.
  4. A show Scrape settles its episodes. After you Scrape the show, its episodes no longer wait in the Inbox for "which show?"; an episode still missing a season or episode number keeps asking which episode it is.

Also:

  • A bare folder is trusted only with support. When the file names no show, its folder is accepted as the show only when it sits above a Season 01 or Specials folder, is named for one season (Sherlock S02), or has a year or provider ID in its name. TV Shows/Kids/S01E01.mkv could be an organizing folder, so that match waits in the Inbox. A show you already matched for the folder is still reused.
  • A file named after its show is a special. In a TV or Anime folder, a file with no episode number that sits in the show's own folder and starts with the show's name (My Love From the Star/My Love From the Star - Epilogue.mkv) is that show's special. In a folder with no type, the same goes when the show's numbered episodes or season folders sit beside it, so a folder of films such as Mission Impossible/ keeps its films. It is not looked up as a title of its own, and it waits in the Inbox for you to pick its number. Named extras such as - Behind The Scenes or -trailer stay extras, and tvshow-trailer is always the show's trailer.
  • The file's year beats the folder's year. Doctor Who (2005)/Season 1/Doctor.Who.1963.S01E01.mkv is the 1963 show.
  • A folder named for one season names the show. Sherlock S02 and Better Call Saul Season 1 give the show title without the season part. Such a folder inside a folder for the same show uses that folder's name and year.

Stage 6: AI Vision

AI Vision is for hard cases. It uses sampled frames and reviewed hints to suggest identity when filenames and providers are not enough.

AI Vision identifies the title. The rest of the metadata still comes from providers once the title is known. AI Vision is Pro and runs when you ask for it (AI Scrape); background scans never spend hosted AI credits.

Stage 7: Review And Apply

The scan never rewrites your library behind your back. Matches MetaTana is sure about (Good) are filed on their own when the folder's Autopilot is on; everything else waits in the Inbox with a reason. You review matches, scrape previews, and field changes before applying metadata or queueing file changes, and file changes can be undone in Activity.

Folder rules

These rules apply to every folder, whichever way you added it.

Blu-ray and DVD folders are one item

A complete BDMV or VIDEO_TS folder is one movie. For Blu-ray, MetaTana waits for non-empty index.bdmv and MovieObject.bdmv, a playlist, and a matching non-empty clip-info/stream pair. For DVD, it waits for non-empty VIDEO_TS.IFO, a title VOB, and that title's matching IFO. Zero-byte, paused, partial, or mismatched copies stay hidden. MetaTana uses the control file to represent the folder, and never lists a .m2ts or .vob file as a movie of its own.

Internal disc files stay hidden from normal scanning. If the control file or playable payload is missing, MetaTana leaves the incomplete folder alone instead of creating a row for every stream, and the scan lists it as skipped: The disc folder is incomplete or still copying. It is scanned once every disc file is there.

A DVD whose files sit directly in the movie folder (VIDEO_TS.IFO and the .VOB files, no VIDEO_TS folder) is one movie too, never one per .VOB. A camcorder disc (PRIVATE/AVCHD/BDMV) is a home video: it is never looked up, waits for review, and keeps its folder's name. A trailer beside a disc folder, such as Jaws (1975)-trailer.mkv, is that movie's trailer.

The title comes from the folders above the disc. A Disc 1, CD2, or DVD 3 folder is skipped, so Lord of the Rings (2001)/Disc 1/BDMV is that movie. The discs of one set (Disc 1 and Disc 2 in one movie folder, or Movie - Disc 1 and Movie - Disc 2 side by side) are one title in your Library, not duplicates. A TV disc such as Friends/Season 1/Disc 1/VIDEO_TS is matched to the show and season and waits for review, because a disc does not say which episodes it holds.

Offline, unmounted, and read-only folders

Before a scan or scrape starts, MetaTana checks that the selected library is really mounted and readable. Before NFO, artwork, rename, organize, or delete work, it also checks write access. If the folder is offline, unmounted, or not visible inside Docker, the action stops before any provider lookup, queued work, database change, or file change.

The error shows the library path. Mount or reconnect that path, then run the action again. MetaTana also accepts another path it has already verified for the same folder. It never guesses that a similarly named macOS mount such as /Volumes/Media-1 is the missing disk. Use Reconnect folder… to choose and verify the exact changed mount path.

On Linux, a folder added before MetaTana 1.1.10 is confirmed on first use after the update: when files MetaTana already knows are there with their recorded sizes, it records the folder's drive and carries on. If it can't confirm the folder (an empty mount point, or a drive that isn't connected), work in that folder waits and MetaTana says MetaTana can't confirm this is your library folder. Connect the drive or share it is on, then retry. Nothing is removed while it waits.

Each folder's row in Folders shows its state, such as Offline, Not responding, Read only, or when it was last checked. Not responding means MetaTana could not finish the check quickly enough; it does not guess that a slow share is safe. An offline folder's row has Check again, and Reconnect folder… is in its ⋯ menu. Check again only checks access; it does not start work. A folder cannot scan until the fresh result says it is online.

Each folder records where it lives: This folder is on under More options in the folder's Edit folder drawer on Folders (and in the full add-folder form) offers This computer, A network share, or A removable drive. Paths that start with \\, //, smb:, or nfs:, and folders on a mounted SMB, CIFS or NFS share, are set to a network share automatically; set the others yourself. For a network share or removable drive, when the folder is empty or can't be read, its items show Source offline in Library instead of File missing, because the share is likely disconnected or the drive unplugged rather than the files deleted. For a folder on this computer, files that disappear show as missing. A mounted share that stops answering (a NAS gone offline) shows Source offline after a few seconds, and the Library keeps loading while it does. Changes made to a network share from other computers may wait for the next scan.

A file you delete leaves the Library once two scans have found it gone. The same goes for the titles of a movie or show folder you delete whole. A library folder that is empty, or holds only system files such as .DS_Store, @eaDir or #recycle, counts as offline, because an unmounted share often leaves such a folder behind, so nothing in it is removed.

A read-only folder (a Docker :ro mount, a read-only share, or an NTFS drive on macOS) scans and is watched like any other folder, and MetaTana fetches its metadata. Folders shows Read only with "Scans work, file changes are blocked". NFO, artwork, rename, organize, and delete need write access and do not run there.

On a read-only folder, Autopilot still identifies files and saves their metadata in MetaTana, but writes no files there. It leaves one notice per folder, not one per file, titled with the folder path followed by is read-only: "This folder is read-only, so MetaTana saved the metadata but wrote no NFO or artwork files. Give MetaTana write access to write them." Scrapes you start yourself and explicit file actions still stop with Library folder is not writable.

A folder or file linked into a library folder (a symbolic link) is scanned wherever it points, including another drive, and its title shows at its path inside the library. A loop of links is read once, and a link to a folder above the library folder is skipped. A file reachable by two paths is one title. Renaming a file in a linked folder renames it where it really is, and the link keeps working. If the linked drive is unplugged, its titles show as offline and stay in the Library until the drive is back, and the folder's scans still finish. Changes on the linked drive are picked up by the next scan.

On Linux, MetaTana remembers the verified filesystem for custom or symlinked folder paths. If the disk disappears and leaves a normal writable folder behind, that folder does not count as the library. Use Reconnect folder… after the real filesystem returns.

When a write action is blocked, the result says: MetaTana started no provider, queue, metadata, or file work. The failed check left no half-written metadata behind.

Watching and Arrivals

You want Use
New files in a normal media folder picked up automatically A Library folder with Watch for changes on
A folder where new files land from elsewhere, checked and then filed into your library An Incoming folder (Arrivals)
One-off media you drop in to sort before filing An Arrivals folder (Folder role under More options in Edit folder, or in the full add-folder form)

If a folder receives files that are still being written, use an Incoming folder: Arrivals waits for each file to settle. Watching a Library folder reacts to every write while a file is still being copied.

Ongoing scans, change watching, and Autopilot are on by default for every way to add a folder (Home, Library, and Folders). A folder added by dropping it is watched once its drop is done, kept or undone, so nothing new mixes into a drop you are still checking (Drop A Folder Or Files); an incoming folder is watched after its first scan begins. Watch folders for changes in Settings › General › Scanning turns watching on or off for every folder at once. Turn off Keep this folder updated under Advanced for one scan only. A desktop exact-file drop scans only that file and never watches its parent folder.

When folder watching starts or a drive reconnects, MetaTana checks for changes made while it was offline. This check can take time on a large network share. Unchanged files skip matching.

With watching on, a file changed in place, such as an overwrite or new audio tracks or language flags written into it, is read again, so its new tracks and resolution show.

A library or incoming folder saved inside another library folder is scanned and watched on its own, with its own type. Scans of the outer folder skip it, so its files are never identified again with the outer folder's type, and a change inside it never leaves the outer folder with a scan stuck in the queue.

Incremental and full scans

Routine scans are incremental. Scan now, Scan all, scheduled scans, and folder watching process new and changed files, fill in technical details for files that are still missing them, and skip everything else. A desktop drop scans only the paths you dropped. The first scan of a folder reads every file because nothing has been seen yet.

A drop or Scan now starts without waiting for a backlog of metadata work from earlier scans to finish. It waits only for work that is already running, and Cancel works while it waits. Cancel also stops that scan's provider requests and retry waits. Other scans can keep running.

A full scan re-reads every file. Use one after you edit NFO files by hand or change a folder's role or type. To run one, open Folders and choose Rescan all files in the folder's ⋯ menu (it is also in Edit folder). It checks every file again, including unchanged ones, so it is slower. It runs once for that folder and does not change the incremental setting. To make every scan full, turn off Incremental scan in Settings › General › Scanning.

Changing a scan option keeps your other saved options. If Settings › General cannot load them, editing waits and the page shows Retry. Try again to load your saved choices before making changes.

Dry run

Dry run is Preview only (no file changes) in Settings › General › Scanning. Autopilot changes no files while it is on: no moves, renames, NFO, artwork or subtitles. Autopilot proposes moves and renames for you to approve in the Inbox under Renames, and Arrivals leaves ready batches waiting for you to approve instead of filing them. Scans and metadata in MetaTana work as usual, and anything you start yourself (Rescrape, Write NFO, editor Save, Approve) still writes.

When Preview only is on, Home can show Preview only is on, so Autopilot changes no files. Select Turn off Preview only to let Autopilot write files again in folders where you allowed it, or Keep it on to keep approving each change.

Autopilot checks Dry run again right before each move it queued on its own. If you turn Dry run on while moves are waiting, those files stay where they are with "Preview only is on in Settings › General, so this file was not moved".

What to check after a scan

Don't judge a scan from one page alone. Background work can finish after Library first loads:

  • Library count: does it roughly match what's on disk?
  • Activity: anything failed?
  • The folder's row in Folders: scan status and when it was last checked
  • Settings › Maintenance › Library health: ghost entries and untracked files
  • Show, season, and episode grouping for TV
  • The Inbox: files with no match or a Fair or Weak match waiting for you

If an older MetaTana version already indexed internal .m2ts or .vob files from a disc folder, run one successful full scan (Rescan all files) after upgrading. After the complete disc control item is safely stored, that same scan removes the old standalone stream records from MetaTana's database. It does not change the disc files. Failed, incomplete, cancelled, or targeted watcher scans keep the old records for safety.