Repository navigation
Name multi-file and structured-leaf books from the right source - #562
Merged
Merged
Conversation
Scan revision 6: a multi-file book whose album is its series, or that has no album, takes its folder title rather than the series or the first file's tag; a leaf folder's position goes with its own series only, an untagged leaf uses its title part (or its series and position), 'Books 01-03' reads like 'Book 01-03', and a disc folder under a leaf no longer takes the whole leaf as its series. Only books the new rules may read differently are re-read once. A title an admin reverted is locked against a later fill's tidy. server#272, #325 (leaf names), #307.
Drop the "Folder" special case from folderOverAlbum (only a test fixture used it), the duplicate ";" test before LeafSeries in pathSegments, and the whitespace-only clause in readScanned's numbered-title check. namesCheck answers a pre-revision-5 multi-file book before reading its path title, so a snapshot that is never stamped does not parse its path on every scan. Restore readNames' account of nil tags and the narrator, and say why TitlesShareWord keeps its own word split. Part of #272, #325.
A run plans no write over an admin's edit in any field or scope, so an edited override present when it writes was made after it read the book. The guard covered only the title under fill: an admin's edit to another field, or to the title during an overwrite run, made between the plan and the write was replaced. KeepEdited now holds for every field the run sets, in every scope. Part of #307.
The backfill re-read every revision 5 multi-file book whose snapshot title was not byte-for-byte its folder's, so a folder spelled in another case or carrying "(Unabridged)" cost two tag reads per book on the first scan after the upgrade. A title the folder already gives (metadata.SameName: case, brackets and series spelling aside) reads the same under every revision 6 rule, so it is only stamped. Part of #272.
A tag naming the leaf's series without its article ("Expanse" beside
"James Corey; The Expanse; Book 03") failed match.SameSeries, so the
scan cleared the position the leaf states. leafTagSeries also accepts
equal match.NormalizeSeries forms; another series still clears it.
Part of #325.
The folder replaced a correct album whenever the album and folder shared
no word, including when the title tags were track labels or the album
with a number ("The Gunslinger" in "The Dark Tower 1"), when the folder
was a series slot ("Discworld 05", "Books 1-3"), a container ("Files",
"MP3", "Unabridged"), or when the files numbered one book under a series
album ("Harry Potter: Philosopher's Stone 01" to "17" in "Files"). Each
now keeps the album, as before revision 6. Without an album, tags that
differ only by bracketed part markers name the book ("Dune"), a container
folder leaves the first tag, and a tag equal to the folder but for case
needs no second read. Bracketed notes no longer count as a shared word.
Part of #272.
…libraries
The numbered-title check was rewritten to need a number in the folder
name, so in a library that prefers its folders a tag equal to the folder
except for case ("The Martian" in "the martian") took the folder's
spelling. Restore the check: any folder name but a structured leaf.
Part of #325.
Reverting a community title stores the title underneath as an edited override, but it skipped the checks an admin's own edit gets, so an empty or over-long tag title became an override no admin could type. It now goes through normalizeOverride and falls back to a plain revert. Part of #307.
With an admin's series edit made after a run read the book kept, the run still wrote its position and other series for the community's series beside it. leaveEdited drops the edited fields from the run's write and, when one is a series field, all three series fields, so the book keeps the admin's series as a whole. Part of #307.
A no-album book in a folder such as "03" or "Book 3" took the folder over its first title tag; a book straight in its author's folder took the author's name over a correct album; "Mistborn Book One" was not seen as a series slot; and a title tag equal to the folder lost to an unrelated series album. Main titled each of these right. Part of #272.
A title tag written from a folder named "Author; Series; Book NN; Title", or a row not read again since revision 6, still stores the whole leaf. The match dialog then searched for the whole leaf instead of its title part. Part of #325.
Its word splitting and stopwords decide whether a folder can replace an album, so a change to them should fail a test. Part of #272.
…tion "Bruno Miller; Dark Road; Books 01-05" tagged with the series as the album was titled "Dark Road", while the untagged copy was "Dark Road 1-5". A tagged range or later book now reads as the untagged copy does; a single first book keeps the album, and a title tag that names the book still wins. Part of #325.
A book whose title turns on its last file's tags waited for that file on every scan, so an unopenable last file cost two tag reads per scan forever. The failed read is now remembered like an ffprobe rejection, until the book is indexed again; the stored title stays. Part of #272.
A folder such as "HP1", an ASIN or an ISBN shares no word with the album, so a book with chapter-name tags in one took the code as its title. Main kept the album. Part of #272.
"Shogun" and "Shōgun", or a decomposed folder name beside a composed tag, shared no word, so the folder's spelling replaced a correct album on a book with chapter-name tags. Part of #272.
KodeStar
added a commit
to KodeStar/audiosilo-docs
that referenced
this pull request
Nov 22, 2026
…ert lock (#347) Docs for KodeStar/audiosilo-server#562. - Scanner, data model and web-ui pages: how a multi-file book's title is chosen (folder, album, title tag), structured leaf names and ranges, folders that name no title, code-named folders, the one-time re-read after the update (scan revision 6), and the remembered tag-read failure. - Admin pages: reverting a community title locks the restored title against later metadata fills; reverting the edited title releases it. - Getting started: organizing your library and first run reflect the naming rules in plain language. No wire change and no screenshots.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Path-read books get their title, series and position from the source that actually names them.
Author; Series; Book 02; Titlegive that title, author and position, including plural ranges ("Books 01-05", titled "Dark Road 1-5" when there is no title part) and disc folders inside them. A leaf's position goes with the tag's own series only; an untagged leaf uses its title part.tag_read_failed_at, migration 0091, until the book is indexed again).The first scan after the update re-reads the affected names once (scan revision bump). Audio files are never changed and title edits stay. No migration and no wire change.
Verified: corpus diff of 227 books (testbed, the 120-book LibriVox library, ABS-only, synthetic sets and 22 probe shapes) against main: 19 changes, 18 fixes and one kept shape (a lone book's files straight in "Terry Pratchett/Discworld" is titled "Discworld"; without a series tag it can't be told from the Weekly Poetry and Wheel of Time fixes). LibraForge mirror run: 3,801 right / 4 wrong on both. A live upgrade from main on six libraries showed exactly the expected title changes, and a second scan changed nothing; the console's Fill, Revert and Match flows were checked live.
Source: v2.7.0 burn-down SRV-TITLE-RULES. Docs: audiosilo-docs PR to follow.