Skip to content

ordered output on final page#1168

Merged
bullmoose20 merged 2 commits intodevelopfrom
order_libraries
Apr 13, 2026
Merged

ordered output on final page#1168
bullmoose20 merged 2 commits intodevelopfrom
order_libraries

Conversation

@bullmoose20
Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • Bug Fix (non-breaking change which fixes an issue)
  • Feature/Tweak (non-breaking change which adds new functionality or enhances existing functionality)
  • Breaking Change (fix or feature that would break any existing functionality for users)
  • Documentation Update
  • Other

Description

PR Summary
Adds deterministic ordering for library output in generated YAML.

What changed
Updated library emission logic in modules/output.py to sort libraries consistently before writing the libraries: section.
Ordering rule is now:
Movie libraries A→Z (case-insensitive, by display name)
Show libraries A→Z (case-insensitive, by display name)
Internal key used as deterministic tie-breaker
Why
Previously, library order depended on insertion/state order and could feel unpredictable between runs/imports. This makes diffs cleaner and output behavior obvious.

Related Issues [optional]

  • Closes #

Which Environment Did You Test On?

  • Local Install (Windows/Linux/Mac via python quickstart.py)
  • Windows Executable
  • Linux Executable
  • macOS Executable
  • Docker
  • Other

@bullmoose20 bullmoose20 merged commit 9741d2e into develop Apr 13, 2026
7 checks passed
@bullmoose20 bullmoose20 deleted the order_libraries branch April 13, 2026 01:36
kometa-tokens bot pushed a commit that referenced this pull request Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant