5. Library Management
A library is one folder on the server that ShieldCinema watches for media, such as Movies, Documentary or Christmas. You can have as many as you like, of six kinds.
Library Types
| Type | What goes in it | Where it shows up | Folder layout |
|---|---|---|---|
| Movie | Films, matched to TMDB for posters, cast and details | Movies page | Movies/Film Name (Year)/file.mkv |
| TV | Series, grouped into seasons and episodes | Shows page | Shows/Show Name/Season 01/S01E01.mkv |
| Videos | Home videos and other personal clips (not matched to TMDB) | Videos page | Videos/file.mp4 (a subfolder becomes a genre) |
| Music | Artists, albums and tracks (an Audio Books library is a music library too) | Music page | Music/Artist/Album/track.flac |
| Tracker | MOD/S3M/XM/IT module music (see section 12) | Music page, as a library chip | any folders of module files |
| Demos | AV showcase clips (see section 11) | Demos page | Demos/clip.m2ts (folders become sections) |
Adding a Library Admin
- Settings → Library & Server → Manage Libraries → + Add Library.
- Pick the type: Movie, TV, Videos, Music, Tracker or Demos.
- In Add Type Library, fill in Library Name (what everyone will see) and Path (the folder on the server, e.g.
/media/library/Movies), then press Add.- Both fields are required (“Name and path are required”).
- When it works you’ll see Library ‘Name’ added.
- The path must be a folder that exists on the server and isn’t already a library; otherwise you’ll see Failed: ….
- A new library is not scanned automatically. Scan it from Manage Libraries (select it → Scan Library) or with Scan Libraries.
You can also add libraries from the server’s browser admin page (section 1), which lets you browse to the folder instead of typing the path.
Scanning
A scan looks through a library’s folder, adds new and changed files, matches new titles on TMDB, and checks each new file can be played. Scanning is incremental: only new or changed files are processed, and existing titles are left alone (missing thumbnails are filled in). The server also scans every library when it starts.
There are three ways to start a scan:
| Where | What it scans | Who |
|---|---|---|
| Long-press a library chip at the top of Movies, Shows, Videos or Music → Scan Library (or long-press All → Scan All Movies Libraries) | That library (or all of that page’s libraries) | Admins (dimmed for everyone else) |
| Long-press Movies, Shows, Videos or Demos in the sidebar → Scan All N Libraries (or Scan Library if there’s only one). Long-pressing Music opens the Music library instead; scan music from its chips | All libraries on that page | Admins (dimmed for everyone else) |
| Settings → Scan Libraries Admin | The libraries you tick | Admins |
Scanning is admin-only everywhere: the options are dimmed for other profiles, and the server refuses scans from them.
The scan pop-up (chip and sidebar scans) is titled Scanning name and has one line per library:
- Name — waiting → scanning… → had X, +Y new, total Z ✓
- The line turns green when done, amber if damaged files were found (· N damaged files), red if it failed.
- When everything is finished the title changes to Scan complete and the button to OK.
- You can press Close at any time: the scan carries on, and a message tells you when it’s done: Scan complete: +5 new · 1,188 files, Scan complete: no new files · 1,188 files or Scan failed (plus · N damaged when it applies).
- While the scan runs, a thin moving bar shows under that page’s entry in the sidebar (Movies, Shows, Videos, Music or Demos), so you can see it’s still going after you close the pop-up. The bar goes away when the scan ends.
Settings → Scan Libraries Admin:
- Each library is listed with how many files it has, e.g.
Documentary (22). The list opens with nothing ticked: tick the libraries to scan, or press RIGHT on a library to jump to Start Scan. - Each line goes waiting (N files) → scanning… (had N) → had X, +Y new, total Z ✓, with a progress bar. This window can’t be closed while it’s scanning.
- After the scan it checks the libraries you scanned for files that no longer exist on disk (Checking for removed files…). If it finds any, it shows what would be removed and asks before removing them. Only the scanned libraries are checked.
- It finishes with Scan Complete and Done. The row in Settings then shows +N new · N files total or No new files · N total, plus · N damaged (Maintenance → Damaged Files) if any files can’t be played.
- Wishlist note: if titles on someone’s wishlist arrived in this scan, the results say so, e.g. 2 titles were removed from your wishlist — now in your library. (1 more came off another profile’s wishlist.), ending with Check the Wishlist row on Home if that looks wrong.
Manage Libraries Admin
Settings → Library & Server → Manage Libraries (the row shows 16 libraries configured) starts with + Add Library, then your libraries grouped by type: Movies, Videos, Shows, Music, Trackers, Demos.
- Each group starts collapsed and shows its total, e.g. ▸ Shows · 100 shows. Totals are counted in movies, videos, shows, tracks, modules or files. Select a group to open or close it.
- Each library shows its count. A library hidden from everyone says Hidden from everyone in red; a holiday library shows this season’s dates, e.g. Holiday · Nov 26–Dec 26.
- Select a library to open its details: Movies library · 1,188 movies · 1,194 files and its folder, followed by its actions. A short explanation of the action you’re on appears above the buttons. Back closes the details and Manage Libraries (open Manage Libraries again to pick another library). After Rename, Hide or Remove you’re back in Settings; Change Type reopens the list.
| Action | What it does |
|---|---|
| Scan Library | Looks through the folder for new, changed and missing files and adds new titles, with the scan pop-up. |
| Rename… | Changes the library’s name everywhere, for every profile (Rename Library → Renamed to ‘X’). The folder on disk keeps its name. |
| Hide from Everyone / Show to Everyone | Hides the library from every profile on every device, admins included (‘X’ hidden from all users), or shows it again (‘X’ is now visible). Only Manage Libraries still lists it. To hide a library just for yourself, long-press its chip and choose Hide from Page. |
| Change Type… | Moves a library between Movies and Videos (home videos): Move “X” to Videos? → Move to Videos. Titles, posters and watch history are kept; it shows up on the other page for every profile and stops counting as the other kind. Only Movies and Videos libraries can change type. |
| Remove Library… | Takes the library and its titles out of ShieldCinema after you confirm (Remove ‘X’ (/its/folder)? This will remove N movies and N shows from the database. Files on disk will not be deleted.). |
Library Maintenance Admin
Settings → Library & Server → Library Maintenance has ten tools. Select one; Cancel closes the list.
Remove Missing Files
Finds library entries whose files were moved or deleted on disk.
- If there are none: No missing files — library is clean.
- Otherwise it lists how many files, episodes, seasons, shows and movies would go, notes Files on disk are NOT touched, and asks Continue?
- Result: Removed N files, N episodes, N movies.
Fetch Missing Episode Images
Pulls episode pictures from TMDB for matched shows whose episodes have none. It starts straight away (Fetching episode images from TMDB — this can take a few minutes…) and reports Added images to N episodes.
Removed Titles
When you remove a movie, show or file in the app, the server remembers its file locations so the next scan doesn’t simply add it back while the files are still on disk. Removed Titles (N) lists those, grouped by title:
- Each entry shows Show, Movie or File, the date it was removed, and how many of its files are still on disk (3 files on disk, 2 of 5 files on disk, file on disk or files gone from disk).
- Pick an entry and choose Restore & Scan: it comes off the list, its library is rescanned, and you’re told how many files came back (“Title” is back: 12 files added.). If nothing new appears, check the files are still in the library folder.
- If none of its files are on disk any more, the button reads Clear Entry and just removes it from the list (Cleared “Title”.).
- If nothing has been removed: Nothing has been removed.
Replacing a file with a corrected copy: if you remove a title, delete its file, and later copy a new file in under the same name, the next scan notices the file is newer than the removal and adds it automatically. Files you removed in the app but left on disk stay removed.
Damaged Files
Every scan checks the files it adds, and re-checks files that couldn’t be read before. A file that can’t be read is marked damaged. This tool lists them all:
- Damaged Files (N) — select a title to see its files. Each movie or show is a header (Show · 8 damaged episodes, Movie · 1 damaged file). Select it to open the exact files to replace (episode, file name, folder, size in GB and the reason: Missing from disk or Damaged: …), and select it again to close it.
- If there are none: No damaged files — everything can be played.
What everyone sees on a damaged title:
- Movies: the movie’s page says ⚠ This movie’s file is damaged and needs to be replaced in red above the Play row (or This version’s file… when there are several versions), and the Play button has a red slash. Pressing it opens Can’t Play, which explains and gives the reason instead of trying to play.
- Shows: each season tab with damaged episodes says how many (e.g. Season 1 · 8 damaged), and each damaged episode has a red slash across its picture with Damaged — needs replacing.
- Scan results say how many damaged files each library has.
The fix: copy a good version over the damaged file (or into the same folder) and rescan. The file is checked again, and once it reads correctly every warning disappears by itself.
Check for Duplicates
Opens the Duplicate Detector, which finds movies and shows that appear more than once (3 movie group(s), 1 show group(s), or No duplicates found!).
- Each card is one group, e.g. MOVIE — Alien (TMDB 348), with the entries side by side as Entry A, Entry B…: poster, files (resolution, video and audio codec, size, version label, folder) or, for shows, seasons with their episode and file counts.
- Merge: Keep which entry? → Confirm Merge. All files and episodes move to the entry you keep.
- Remove Entry: Remove which entry? Its files are moved to the other entry first, and nothing is deleted from disk (Entry removed (files preserved)).
- Mark OK marks the group ✓ Verified and dims it. This only lasts while the screen is open.
Music Library Cleanup
Fixes albums that ended up split or doubled after scanning. It has two lists:
- Fragmented Albums (Albums split across multiple entries): Merge all into “Album” (N tracks) joins them into the entry with the most tracks.
- Duplicate Albums (Albums appearing more than once per artist): Keep “Album”…, merge others.
- Both ask Merge Albums — Merge N album(s) into the target? All tracks will be reassigned.
Convert Disc Subtitles
Many rips carry their English subtitles only as pictures (Blu-ray PGS or DVD VobSub). Those can’t be shown when a video is streamed or converted, so they appear greyed out as “(image-based)”. Convert Disc Subtitles has the server read the pictures and add a text track, English (from disc), to every movie and episode that has English picture subtitles but no English text ones. Your media files are not changed; the text files are kept in the server’s data folder.
-
The screen shows how many files are waiting and done (2 of 1,172 done), what’s being converted now (Now: Jurassic Park), and how many were converted or couldn’t be read. It refreshes every few seconds.
-
Start Converting / Stop: Stop finishes the files in progress first (Stopping after the current file…). With nothing left: Nothing to convert.
-
Speed: how many files at once. It always runs at the lowest priority, so watching and streaming come first. Changing the speed while it runs restarts it cleanly; files that were in progress start over.
Speed Files at once Processor use (of 12 cores) Low 1 about 2 Medium 2 about 4 High 3 about 6 Maximum 4 about 8 Roughly 1,500 files take about 4 days at Low and about 1 day at Maximum.
-
Convert new files after each scan: on by default, so new rips get text subtitles automatically.
-
Files that couldn’t be read are set aside; Try the … that failed again retries them.
Accuracy is very good for Blu-ray and good for DVD; expect the occasional misread letter (e.g. “It” for “it”).
Detect Intros & Credits
The server can find where each episode’s opening titles and end credits are, by comparing the sound of the episodes in a season. That’s what makes the Skip Intro, Skip Credits and Up Next buttons appear during playback (section 13). Detect Intros & Credits runs this for the whole library in the background.
- The screen shows whether it’s Detecting… or idle, how far it has got (N of M shows done, with episodes in brackets), the show it’s working on (Now: Friends), how many intros and credits it has found, and how many shows couldn’t be checked. It refreshes every few seconds.
- Start Detecting (N shows) / Stop (after the current show): it works one show at a time and always at the lowest priority, so watching and streaming come first. Stop finishes the show in progress first.
- Detect for new episodes after each scan: on by default, so new episodes are checked automatically.
- A season needs at least two episodes to compare; episodes it can’t analyse simply play without the buttons. Specials and extras are skipped.
- Analysing a large library takes a long time (days for thousands of episodes); shows that are already done get the buttons straight away. It also starts by itself after each library scan while Detect for new episodes after each scan is on, and its progress is kept if the server restarts; start it again here if it isn’t running.
Music Genres and Merge Artists
Music Genres gives albums with no genre one, and tidies genre names; Merge Artists makes one artist spelled two ways into one. Both are described with the music tools (section 10).
Holiday Libraries
A library can belong to a Holiday Theme (admin, Settings → Library & Server → Holiday Themes). It stays out of sight all year and appears as a chip on the Movies page (and in a themed row on Home) only during the theme’s dates, e.g. Thanksgiving to Dec 26. Manage Libraries shows this season’s dates, e.g. Holiday · Nov 26–Dec 26. See section 7.
Who Sees Which Libraries
Libraries are chosen in the library row at the top of Movies, Shows, Videos and Music (section 6), not in the sidebar.
- Everyone can hide a library from their own pages: long-press its chip → Hide from Page. Bring it back in Settings → Hidden Libraries.
- Admins can hide a library from everyone (Manage Libraries → Hide from Everyone) and choose which libraries each profile can see (Manage Users → Restrictions → Library Access, section 4) Admin.