# How a folder is read

> Where each field comes from, how discs and sets are found, and what gets flagged.

Trellis reads a show from three places, in order: the file tags, the info file, and the folder name. A row whose sources disagree is flagged for you to settle.

## Fields

**Artist** comes from the tags and from the nearest folder name above the files. A name already in your library outranks every other reading, and a billing variant of a known act (the name with "and his band" added) reads as that act. Correcting an artist teaches Trellis the alias.

**Date** is never invented. "1977-05-08", "May 8 1977" and "77-05-08" all read; an ambiguous numeric date reads month first. A year alone, or a year and month, is a complete date for a live recording.

**Venue, city, event, source, lineage and engineers** come from the info file, and from tags where a tag carries them. Placeholder names such as "Unknown Venue" are not venues.

**Album or Live.** Release tags in the files, or two of barcode, catalog number, label and format in the info file, make a folder an Album; one of them sends it to Review. Otherwise a folder whose tracks share one ALBUM tag, with no month and no venue, is an Album. A live recording needs a full date, or a year and a venue. Anything else is Unknown until you settle it in Review.

## Tracks, discs and sets

Track numbers follow scan order, so a two-disc show counts 1 to 24.

A disc is recognized from a subfolder (`CD1`, `Disc 2`, `Side A`), from the filenames (`d1t01`, `cd2-04`), or from a DISCNUMBER tag on every file. The tag wins when present.

Sets ("Set 1", "Encore") come from the info file's track list.

## Flags

- **Check artist.** The sources name different acts, or only one source names one.
- **Incomplete release, N of M.** The tags or the matched release list more tracks or discs than the folder holds.
- **Incomplete recording.** The show's own track or disc numbering has a gap.
- **Same artist and date** as a recording in the library.
- **Unknown** type.

Only Unknown blocks Import.
