docs(smart-playlists): document album-level fields - #419
Open
deluan wants to merge 1 commit into
Open
Conversation
Adds the five album-level fields shipped in navidrome#5899: albumdateadded, albumdatemodified, albumduration, albumsongcount and albumsize. Includes a worked example for the use case that motivated them (recently added albums that still play in album order), and notes the tie-breaking caveat: an album's date added is the oldest file creation date among its tracks, so a bulk copy or restore can leave albums with identical timestamps, and the following sort fields then interleave their tracks.
deluan
marked this pull request as ready for review
August 6, 2026 15:12
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eb4b7cd0d7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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.
Description
Documents the five album-level smart playlist fields shipped in navidrome/navidrome#5899:
albumdateadded,albumdatemodified,albumduration,albumsongcountandalbumsize.Three changes to
content/en/docs/usage/features/smart-playlists/index.md:album*entries.dateaddedscatters an album's tracks because each track has its own timestamp;albumdateaddedkeeps them together.albumduration,albumsongcountandalbumsizeadded to the list of fields supporting numeric comparisons, and the "Album & Artist Fields" note now distinguishes these album-describing fields from the listening-history ones, since being identical across an album is exactly what makes them useful as a sort key.The example carries a caveat worth flagging for review: an album's date added is the oldest file creation date among its tracks, so a bulk copy or restore can leave many albums with an identical timestamp. When albums tie, the following sort fields (
discnumber,tracknumber) apply across all the tied albums and interleave their tracks. Addingalbumas a tiebreaker fixes it, which is why the example uses-albumdateadded,album,discnumber,tracknumberrather than the shorter form. This was raised in review on the Navidrome PR and deliberately documented rather than fixed in code — injecting a sort key automatically would override user-specified sort semantics and would have to change the existingalbum*fields to stay consistent.Type of change
Checklist
relrefshortcodenpm start) when relevantnpm run build)The only new link is a same-page anchor to Example 8, which follows the existing convention in this file (e.g. the MusicBrainz fields cross-reference) rather than
relref, sincerelreftargets other pages. Verified in the built output that the table rows, the anchor and the alert shortcode all render.