photon-server works out what each file is from its folder and file name, before it looks anything up online. A clear name is recognised straight away. A muddled one may be matched to the wrong title, or not at all.
The layouts on this page are the same ones Jellyfin and Plex use. If your files are already set up for either, they are already set up for photon-server.
Keep films and shows in two separate folders, and add each as its own library. You can mix them in one library if you prefer: see films and shows in one library.
Films
Give each film a folder named after it, with its year in brackets, and put the film inside:
/media/Films
├── Blade Runner (1982)
│ ├── Blade Runner (1982).mkv
│ ├── poster.jpg
│ └── fanart.jpg
├── Heat (1995)
│ ├── heat.1995.1080p.bluray.x264.mkv
│ └── heat.1995.1080p.bluray.x264.en.srt
└── 1917 (2019)
└── 1917 (2019).mp4 When a folder holds one film, the folder’s name is what counts. The file inside Heat (1995) can be
called anything. Pictures, subtitles and other files in the folder belong to that film too.
Folders can sit as deep as you like: /media/Films/Crime/Heat (1995) works the same.
Films can also sit loose, each named after itself:
/media/Films
├── Alien (1979).mkv
├── Aliens (1986).mkv
└── Halloween
├── Halloween (1978).mkv
└── Halloween (2018).mkv That is four films. The two Halloweens stay apart because their years differ.
Tips for film names
- Include the year. Without it, the server may pick a different film with the same name.
- Messy download names are fine. Dots and underscores are read as spaces, and anything after
the year, such as
1080porbluray, is ignored.The.Dark.Knight.2008.1080p.mkvis The Dark Knight (2008). - A group name in square brackets at the start, such as
[Group] Title, is ignored.
Naming the match yourself
If you know a film’s or show’s ID on TMDB, TheTVDB or IMDb, add it to the folder name. The server then uses that exact title and skips searching:
Heat (1995) [tmdbid-949]
Heat (1995) {tmdb-949}
Heat (1995) [imdbid-tt0113277]
The Office (2005) [tvdbid-73244]
Cowboy Bebop (1998) [anidbid=23] You can put the ID in square, round or curly brackets. This is the surest way to get a tricky title right. Only a match you fix by hand in the web app beats it.
Versions and editions
Put several versions of one film in its folder, each starting with the folder’s name. Whatever comes after the name becomes the version’s label:
/media/Films/Blade Runner (1982)
├── Blade Runner (1982) - 2160p.mkv
├── Blade Runner (1982) - [1080p].mkv
└── Blade Runner (1982) {edition-Final Cut}.mkv That is one film with three versions, labelled 2160p, 1080p and Final Cut. When you press play, you can choose which one.
Shows
Give each show a folder directly inside the library, and put its episodes in season folders:
/media/Shows
├── The Wire (2002)
│ ├── poster.jpg
│ ├── season01-poster.jpg
│ ├── Season 1
│ │ ├── The Wire S01E01 - The Target.mkv
│ │ └── The Wire S01E02 - The Detail.mkv
│ └── Season 2
│ └── The Wire S02E01 - Ebb Tide.mkv
├── Fleabag
│ ├── Fleabag S01E01.mkv
│ └── Fleabag S01E02.mkv
└── Doctor Who (2005)
├── Specials
│ └── Doctor Who S00E01 - The Christmas Invasion.mkv
└── Series 1
└── Doctor Who 1x01 - Rose.mkv The show takes its name from its folder. Season folders are optional, and can be called Season 1, Series 1, S01, 1, or “season” in many other languages. Specials is season 0.
Episode names
The safest name gives the season and episode as S01E02. These all work:
| Form | Example |
|---|---|
| Season and episode | The Wire S01E02.mkv, the.wire.s01.e02.mkv |
| Season x episode | Doctor Who 1x01 - Rose.mkv |
| In words | Show Season 1 Episode 2.mkv |
| Air date | The Daily Show 2013-12-09.mkv |
| Just a number | Show - 101.mkv, 01 - Pilot.mkv |
Anything after the season and episode is used as the episode’s name until the online lookup gives the proper one. A file whose name gives no episode number is skipped, and the server’s log says so.
Films and shows in one library
A library that holds both tells a show’s folder from a film’s by what is inside. A folder counts as
a show when it holds a tvshow.nfo file, a season folder named in words (Season 2), or at least
two files named as episodes (S01E01).
/media/Everything
├── Alien (1979).mkv
├── Films
│ └── Heat (1995)
│ └── Heat (1995).mkv
└── TV
├── The Wire (2002)
│ └── Season 1
│ └── The Wire S01E01.mkv
└── Fleabag
├── Fleabag S01E01.mkv
└── Fleabag S01E02.mkv Here The Wire and Fleabag are shows, and Alien and Heat are films. Everything else is treated as a film, so give every show its own folder.
Music
A music library reads each sound file’s own tags: its title, album, artist, disc and track number. It puts every track on its album, and every album under the artist its tags name as the album’s. Any layout works, though one folder per album, under one per artist, is the tidiest:
/media/Music
├── Pink Floyd
│ └── The Wall
│ ├── CD1
│ │ └── 01 In the Flesh.flac
│ ├── CD2
│ │ └── 01 Hey You.flac
│ └── cover.jpg
└── The Weeknd - Hurry Up Tomorrow
├── 101-wake_me_up.flac
└── 201-i_cant_wait_to_get_there.flac Where the tags leave something out, the files fill it in:
- An album with no album artist belongs to the artist all its tracks name, or to Various Artists if they name different ones.
- A disc kept in a folder of its own (
CD2,Disc 2) joins the rest of its album. - Files numbered
101,102,201are tracks of two discs. - A track with no title is named by its file.
An album’s cover is cover.jpg, folder.jpg or poster.jpg in its folder, else the picture its
tracks hold. A music library supports FLAC, MP3, AAC and M4A, Ogg and Opus, WAV and AIFF, WMA,
Monkey’s Audio and WavPack files.
Books
A books library holds ebooks and audiobooks. Each book goes under its author, so a folder per author, then one per book, is the tidiest:
/media/Books
├── Ursula K. Le Guin
│ └── A Wizard of Earthsea
│ ├── A Wizard of Earthsea.epub
│ └── cover.jpg
└── J.K. Rowling
└── Harry Potter and the Deathly Hallows
├── Part 01.mp3
├── Part 02.mp3
└── Harry Potter and the Deathly Hallows.epub - Ebooks can be EPUB, PDF or CBZ comic archives. An EPUB’s own details give its title, author,
series and cover, and so does a comic’s
ComicInfo.xml. A PDF is named by its file. - Audiobooks are a folder’s sound files, played in the order their disc and track tags give, else by name. Their tags give the title, author and series. A single file’s cue sheet gives its chapters, as a chapter list does in an M4B.
- One book, two formats: an ebook and an audiobook of the same title in one folder are one book you can read or listen to.
- A book whose files name no author belongs to the author’s folder it’s in.
CBR and CB7 comics, which are RAR and 7-Zip archives, aren’t read: convert them to CBZ.
Extras
Trailers, featurettes and other extras go beside their title, either in a folder named for their kind or with the kind at the end of the file name:
/media/Films/Heat (1995)
├── Heat (1995).mkv
├── Heat (1995)-trailer.mkv
└── Featurettes
└── Making Heat.mkv | Folder | Or end the name with |
|---|---|
Trailers | -trailer |
Featurettes | -featurette |
Behind The Scenes | -behindthescenes |
Deleted Scenes | -deleted |
Interviews | -interview |
Scenes | -scene |
Shorts | -short |
Extras | -extra |
For a show, an extras folder in the show’s folder belongs to the show, and one in a season folder belongs to that season.
Pictures beside a title
A picture you put beside a title is used before any picture found online. Use these names, as .jpg, .png or .webp:
| Name | Used as |
|---|---|
poster, folder or cover | the poster |
fanart or backdrop | the background picture |
logo or clearlogo | the title’s logo |
thumb or landscape | a wide still |
banner | the banner |
In a folder holding several films, start each picture with its film’s name: Alien (1979)-poster.jpg. An episode’s still is named after the episode: The Wire S01E01.jpg. A season’s poster can sit in the show’s folder as season01-poster.jpg.
Subtitle files and theme tunes go beside a title too: see subtitles and theme music.
Good to know
- A film in several files. End each name with
cd1,cd2,part1,disc1and so on, and they play in order as one film:Lawrence of Arabia (1962) cd1.mkv. - Several episodes in one file. Name both:
The Office S02E01E02.mkvorS02E01-02.mkv. - Shows numbered straight through, as anime often is (
Show - 101.mkv), need the show’s episode order set to Absolute: see episode order. - Daily shows named only by date are filed under the year as the season.
- What is skipped. Sample files and folders, hidden files that start with a dot, NAS system
folders such as
@eaDirand#recycle, and anything that is not a video file. - Hiding a folder. Put an empty file called
.ignorein it. A.ignorewith lines in it hides only the files those lines match, written the same way as a.gitignorefile. - Shortcuts. Links to files and folders elsewhere are followed. A
.strmfile, a text file holding a web address, plays what is at that address.