Libraries and files
Add your folders as libraries, name files so Leyla recognises them, and fix the few it gets wrong. Leyla only reads your media. It never renames, moves or writes to it.
Add a library
Open Administration › Library › Libraries and add a library. It asks for:
- Library name
- What people see, such as Films or Kids.
- Kind
- Films, Television, or Films and shows for a folder that holds both.
- Metadata language
- The language for titles, descriptions and posters.
- Media folders
- One or more folders. In Docker, these are the paths inside the container, under
/media.
The scan starts at once. Titles appear first, then they play, then posters arrive.
Name your files
Leyla reads most names as they are, including release names like Heat.1995.1080p.BluRay.mkv. These layouts work best.
Films
Films/Heat (1995)/Heat (1995).mkv
Films/Blade Runner (1982)/Blade Runner (1982) {edition-Final Cut}.mkv
Films/Alien (1979) [tmdbid-348]/Alien (1979).mkv- Put the year in brackets after the title.
- Mark an edition with
{edition-…}, or with words such as Director’s Cut, Extended, Theatrical, Unrated, Remastered or IMAX after the year. - Two files of the same film, such as 1080p and 4K, become two versions of one title.
Shows
TV/Firefly (2002)/Season 01/Firefly - S01E01 - Serenity.mkv
TV/Firefly (2002)/Season 01/Firefly - S01E02-E03.mkv
TV/Firefly (2002)/Specials/Firefly - S00E01.mkv
TV/The Daily Show/Season 2024/The Daily Show - 2024-03-12.mkv- Use
S01E02or1x02. A file with two episodes isS01E02-E03. - Put each season in a
Season 01folder. Specials go inSpecialsas season 0. - Daily shows can use the air date instead of an episode number.
- Anime with absolute numbers works too, such as
S05E01 - 061or[Group] Show S2 - 05.
Extras
Put extras in a folder beside the film named Trailers, Featurettes, Behind The Scenes, Deleted Scenes, Interviews, Scenes, Shorts or Other. Or end the file name with -trailer, -featurette, -deleted and so on.
Subtitles
Put subtitle files next to the video, with the same name and a language code:
Heat (1995).en.srt
Heat (1995).en.forced.srt
Heat (1995).de.sdh.srtforced marks forced subtitles. sdh, cc or hi marks subtitles for the deaf and hard of hearing. Two- and three-letter codes and English language names all work.
Point at the right title
If a name is ambiguous, add the id from TMDB, IMDb or TVDB to the folder or file name: [tmdbid-348], [imdb-tt0078748] or {tvdb-78874}.
New files
Leyla watches your folders. A new file shows up about 15 seconds after its folder stops changing. A check of every library also runs every six hours, in case a change was missed, for example on a network share. To scan now, open the library and choose Scan. These timings are under Administration › Settings › Finding new files.
When Leyla isn’t sure
If two titles are equally likely, or a file matches nothing, the library’s page lists it under Questions. One answer settles every file in that folder. Files that Sonarr or Radarr placed are never asked about, since they already say what they are.
Fix a wrong title
Open the title in Administration
Find it under Administration › Library, or open it from its library.
Choose Fix match…
Search by title and year, or paste a TMDB, IMDb or TVmaze link or id.
Pick the right one
Every file of the title follows. Your fix stays through every refresh.
To fetch details again for a whole library, open it and choose Refresh metadata. Force refresh identifies every title again from scratch, and keeps your fixes.
Where details and posters come from
By default Leyla uses its shared metadata service, so you need no keys. It looks up titles, never who watches. Under Administration › Settings › Plugins you can choose, for each source, the shared service, your own key, or off:
- TMDB
- Titles, plots, cast and posters
- OMDb
- IMDb ratings and plots
- fanart.tv
- Logos, backgrounds and clear art
- Online trailers
- A film’s trailers on YouTube or Vimeo, found through TMDB
Plugins
Plugins add sources of details, scores and artwork. TMDB, TVmaze and fanart.tv come installed. To add more, open Administration › Settings › Plugins, find one in the Catalog and choose Install. It starts working at once. Turn it off on its own page. You can also add a .wasm plugin from a file.
A plugin can reach only the websites it declares, and its page lists them.
Next steps
Something missing or wrong here? Tell us.