ContentsFile and folder naming
  1. Getting started

    1. What Kryspal Media is
    2. System requirements
    3. Install with Docker
    4. First-time setup
    5. Upgrade and back up
  2. Libraries

    1. Create and manage libraries
    2. File and folder naming
    3. Flexible file layout
    4. Metadata and NFO
    5. Tags
    6. Images
    7. Network storage
    8. strm and cloud drives
    9. StrmTool settings
    10. Subtitles
    11. Intro and outro
    12. Search tips
    13. Actors and people
    14. Duplicate videos
  3. Playback

    1. Web player
    2. Discover
    3. Third-party players
    4. Remote access
    5. Webhooks
  4. Members and devices

    1. Members
    2. Parental controls
    3. Account sync
    4. Devices and simultaneous streams
  5. Plugins

    1. Plugin center
    2. Plugins
    3. Third-party plugins
  6. Move from another server

    1. Move from Emby
    2. Move from Jellyfin
  7. Licenses and plans

    1. Compare plans
    2. PRO features in detail
    3. MAX features in detail
    4. Buy, activate and move a license
    5. Offline grace and expiry
  8. Troubleshooting

    1. Logs and reporting a problem

File and folder naming

Good names help the server recognize your titles correctly. This page shows how to name and arrange movies, series, extras, subtitles and images. To see which layouts also work, read Flexible file layout.

On this page
  1. Put an ID in the name
  2. Movies
  3. Several versions of one movie
  4. Split videos (CD1 / CD2)
  5. Extras (trailers, behind the scenes)
  6. Videos with catalog numbers
  7. Disc images and disc folders
  8. TV shows
  9. Category folders
  10. Limits and tips
  11. External subtitles and audio tracks
  12. Image files

The main rule: folder name = title + year, with the video and its companion files in the same folder. The year helps scraping match the right title. Without a year it still works, but titles with the same name are more likely to be matched wrongly.

Put an ID in the name#

If a folder or file name contains a source ID, scraping uses it directly instead of guessing from the name. This is the most accurate way.

Movies/
  Inception (2010) [tmdbid-27205]/
  The Matrix (1999) {imdb-tt0133093}/
TV Shows/
  Breaking Bad (2008) [tmdbid-1396]/
    Season 1/

Accepted forms: [tmdbid-123], {tmdb-123}, [imdbid-tt1234567], {imdb-tt1234567}, [tvdbid-123] (any letter case). The ID is not shown in the display name. A tag on a season folder is the ID of that season.

Movies#

Standard layout: one folder per movie.

Movies/
  Movie Name (2010)/
    Movie Name (2010).mkv
    Movie Name (2010).nfo            (optional)
    poster.jpg                       (optional)
    fanart.jpg                       (optional)
    Movie Name (2010).zh-Hant.srt    (optional external subtitle)
  • Write the title and year as Title (2010), Title [2010] or Name.2017.1080p. If there are several, the last year wrapped in separators is used. Release tags such as 1080p, BluRay and x265 are ignored.
  • A movie file can sit directly in the library root (Loose Movie (2019).mp4). Then folder-level files such as poster.jpg and movie.nfo are not assigned to it. Use file-name-plus-suffix names instead: Loose Movie (2019)-poster.jpg, Loose Movie (2019).nfo. We recommend one folder per movie.
  • Several movies in one folder also work, each as its own title. Folder-level poster.jpg and movie.nfo are then not given to any of them, so name images <file name>-poster.jpg.

Several versions of one movie#

Several videos in one subfolder whose names are all <base>, <base> - <version name> or <base>-<version name> are merged into one movie with several versions. You pick the version when you play. The base is the folder name; when the folder name does not fit, it is the shortest file name in the folder (without the extension).

Blade Runner 2049 (2017)/
  Blade Runner 2049 (2017) - 1080p.mkv
  Blade Runner 2049 (2017) - 4K.mkv
  • The version name is the text after - or - (1080p, 4K, Director's Cut and so on). For example ABC-123.mp4 and ABC-123-C.mp4 in one folder are two versions of one movie, whatever the folder is called.
  • The label must follow a separator: ABC-123C or abc123ch next to ABC-123 are separate movies.
  • Every main video in the folder has to fit; if one does not, every file in the folder stays a separate movie.
  • Files directly in a library's root folder are not merged by this rule, so a big flat folder is not merged by mistake.
  • At most 8 versions are merged. With more, or when the names do not share a title, each file becomes its own movie.
  • An [tmdbid-…] tag does not affect merging; with or without it they count as one movie.
  • The same movie in different folders (for example 1080p in one place and 4K in another) is not merged by this rule.

Naming a version, choosing the primary version. Open a title in the admin console, go to its files and versions tab, and use the menu on a version to Rename it (for example “Director's Cut”) or Set as primary version, the one played by default. The name you give is kept through rescans, refreshes and moves; leave it empty to go back to the automatic name. A version whose file is missing cannot be the primary version. An external tool with a Query and sync or admin API key can set the same names and the primary version for many versions at once (POST /items/versions).

When you play, the name part of a version is taken from the first of these: a name you wrote the Emby way, name - version name with spaces around the hyphen; the name a metadata plugin gave that version; the part of the file name after the hyphen (ABC-123-C gives C). The server then adds the resolution and similar details itself, shown when the versions differ. So for a name without spaces such as ABC-123-C, a metadata plugin that names versions wins; only title - version name with spaces counts as a name you chose yourself, and it always comes first.

Split videos (CD1 / CD2)#

When one movie is cut into several files, end the names with cd1, cd2 (or part1, disc2, pt2). They are stacked into one movie and play one after another. Names such as <base>-A, <base>-B (then -C, -D; starting at A, at least two) are also parts when the folder has no plain <base> file; with a plain <base> next to them, -A and -B are versions.

CAT-1001/
  CAT-1001-cd1.mp4
  CAT-1001-cd2.mp4

The part number is a single character (1 to 9 or a to d). The separator can be a space, ., _ or -. Letter case does not matter.

Extras (trailers, behind the scenes)#

Two ways:

  1. Put them in a sub-folder named one of: trailers, extras, featurettes, behind the scenes, deleted scenes, interviews, scenes, shorts, clips, other, 预告片, 花絮, 特典.
  2. Keep them in the movie's folder and add a suffix to the name: -trailer, -featurette, -deleted and so on (XXX-trailer.mp4).

Extras are attached to that movie (or that series or season). They do not become separate movies.

Videos with catalog numbers#

  • Name the folder and file with the catalog number, for example CAT-1001/CAT-1001.mp4. Split-video and multi-version rules are the same as above.
  • The catalog number field (searchable by catalog number) comes from <num> in the NFO. The server does not guess a catalog number from the file name, because wrong guesses are common. Create the NFO with a scraping tool or plugin, or fill it with a scraping plugin.
  • When several titles share one folder, use <file name>-poster.jpg and <file name>.nfo. Otherwise images and NFO are not assigned.

Disc images and disc folders#

  • .iso Blu-ray images are supported. One image is one playable unit; the main title, running time and chapters are found automatically. For several discs use the -disc1, -disc2 rule.
  • Blu-ray folders (BDMV/) are supported in movie libraries. A folder that holds BDMV/index.bdmv is one movie, named from the folder above BDMV; the .m2ts files inside are not added one by one. NFO files, posters and subtitle files next to the disc are used as for any movie. A folder of several discs works like this: disc 1 is the movie and the other discs are added as extras of it, unless a disc folder name says it is a continuation (Part 2, CD2), in which case name it like that. A plain Disc 2 only numbers the discs.
  • Not supported yet: a disc whose main title is made of several clips cannot be played (the item says so and offers no link); in a TV library only a Blu-ray folder inside an episode folder counts (as one episode, numbered from the folder name, for example Show S01E03/BDMV), and one placed directly in a show or season folder is skipped; and a disc cannot be cast to a TV.
  • DVD is not supported: VIDEO_TS/ folders are skipped, and DVD .iso, .img and .nrg are added to the library without media info. We suggest converting them to MKV first.

TV shows#

Standard layout: show folder → season folder → episode files.

TV Shows/
  Breaking Bad (2008)/
    tvshow.nfo                       (optional)
    poster.jpg                       (optional)
    Season 01/
      season.nfo                     (optional)
      Breaking Bad - S01E01 - Pilot.mkv
      Breaking Bad - S01E01 - Pilot.nfo
      Breaking Bad - S01E01 - Pilot-thumb.jpg
      Breaking Bad - S01E02.mkv
    Season 02/
      Breaking Bad - S02E01-E02.mkv  (one file, two episodes)
    Specials/
      Breaking Bad - S00E01.mkv

Season folders can be named Season 1, Season 01, S01, 第2季 or 第二季. Specials and 特别篇 are season 0 (specials). A season folder with no videos does not create a season.

Episode file names can be written like this:

Style Example
Standard S01E02, s01e02
Multi-episode S01E02-E03, S01E02E03
Alternative 1x02
Chinese 第03集
Anime release groups [Group] Title - 01 [1080p].mkv, [Group] Title [01][1080p].mkv (v2 allowed)
Number only EP03, Show 18
  • The episode title comes from the NFO first. Without an NFO, the text after the season/episode marker in the file name is used (cut off at technical tags such as 1080p or WEB-DL). If there is none, "Episode N" is shown.
  • The season number comes from the NFO first, then the file name, then the season folder it sits in.
  • Season folders are optional. Put episodes directly in the show folder and name them S01E02. Anime that only has episode numbers (no season) can also sit in the show folder with absolute numbering; scraping tries to map the absolute number to the right season and episode, and anything that does not match is listed as needing identification so you can fix it by hand.
  • Name a show's season folders with a season number, such as Season N.
  • Extras: put an extras (or similar) folder under the show or season folder, as for movies.

Category folders#

You do not have to put every show in the library root.

Series/
  Mainland/
    Some Show/
      Season 1/
  Japan/
    Anime/
      Some Anime/
        Season 1/
        Season 2/

"Mainland", "Japan" and "Anime" are category folders. They do not become shows, and there is no depth limit. The server treats the first folder that holds videos directly, has season folders, or has a tvshow.nfo as the show, so do not put videos directly in a category folder: it would be taken as a show.

Part folders such as Part 1 / Part 2 (including 上部/下部, 第一部/第二部) are treated as two seasons of the same show.

A folder per episode (common in downloaded releases) also works, but only in a TV library, and only inside a show-name folder, for example Show/[Group] Show - 01 [1080p]/ and Show/[Group] Show - 02 [1080p]/. That level needs at least 2 folders, each holding just 1 video, with episode numbers that can be told apart.

Limits and tips#

  • Anime movies (one folder and one file each) belong in a Movies library. In a TV library they become shows with very few episodes.
  • Episodes of several shows in one folder, with no show folders, cannot be told apart. Use one folder per show.
  • A file name that is only a number (01.mkv) still gives the episode number, but the show name then comes from the folder name, so make sure it is correct.

External subtitles and audio tracks#

Put them next to the video. The name is video file name + language tag + extension.

Movie Name (2010).mkv
Movie Name (2010).zh-Hant.srt
Movie Name (2010).en.ass
Movie Name (2010).chs.forced.srt
  • Subtitle formats: srt, ass, ssa, vtt, sup (Blu-ray image subtitles), and idx + sub (DVD image subtitles). A standalone .smi or .sub (MicroDVD) is not supported.
  • Language tags: zh, zh-Hans, chs, zh-CN (Simplified); zh-Hant, cht, zh-TW, big5 (Traditional); en, eng, ja, jpn and so on. Add forced or default to mark forced and default tracks.
  • For a multi-version movie, the folder name can be used as the subtitle's base name, and it applies to all versions.
  • Adding or removing a subtitle file is picked up by real-time monitoring or the next scan. You do not need to rebuild the library.

Image files#

Put them in the title's folder, or next to the video using file name + suffix.

Use File name
Poster poster.jpg (folder.jpg, cover.jpg also work) / <file name>-poster.jpg
Background fanart.jpg, fanart1.jpg … (several allowed) / backdrop.jpg / every image in an extrafanart/ folder
Logo clearlogo.png, logo.png
Banner, landscape banner.jpg, landscape.jpg
Episode thumbnail <episode file name>-thumb.jpg
Season poster (in the show folder) season01-poster.jpg, season-specials-poster.jpg
Person photo .actors/<name with spaces replaced by underscores>.jpg in the title's folder

Local images take priority over online sources, so images you place by hand are not overwritten by scraping. Supported formats are jpg, png and webp.