aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Sorting/SortExtensions.cs
AgeCommit message (Collapse)Author
2025-02-05Moved Trimmed to Jellyfin.Extensions.StringExtensionsMarc Brooks
2024-09-18Sort embedded collections in Nfo filesMarc Brooks
Because the Nfo files emit the collections as they are in-memory, the files are not stable in format, genres, tags, albums, people, etc. are emitted in random orders. Add ordering of the collections when emitting the Nfo files so the file remains stable (unchanged) when underlying media information doesn't change. In the process of this, it became clear that most of the providers and probes don't trim the strings like people's names, genre names, etc. so did a pass of Trim cleanup too. Specific ordering: (alphabetical/numeric ascending after trimming blanks and defaulting to zero for missing numbers) BaseItem: Directors, Writers, Trailers (by Url), Production Locations, Genres, Studios, Tags, Custom Provider Data (by key), Linked Children (by Path>LibraryItemId), Backdrop Images (by path), Actors (by SortOrder>Name) AlbumNfo: Artists, Album Artists, Tracks (by ParentIndexNumber>IndexNumber>Name) ArtistNfo: Albums (by Production Year>SortName>Name) MovieNfo: Artists Fix Debug build lint Fix CI debug build lint issue. Fix review issues Fixed debug-build lint issues. Emits the `disc` number to NFO for tracks with a non-zero ParentIndexNumber and only emit `position` if non-zero. Removed the exception filtering I put in for testing. Don't emit actors for MusicAlbums or MusicArtists Swap from String.Trimmed() to ?.Trim() Addressing PR feedback Can't use ReadOnlySpan in an async method Removed now-unused namespace
2021-06-19Move non-jellyfin extensions to separate projectBond_009
2021-05-07Enable nullable reference types for MediaBrowser.ControllerBond_009
2020-08-22Enable TreatWarningsAsErrors for MediaBrowser.Controller in ReleaseBond_009
2020-03-24Remove unused usingsBond_009
2020-03-02Apply code review suggestionVasily
2020-02-27Simplify AlphanumericComparer, reduce code duplicationVasily
2019-01-13ReSharper conform to 'var' settingsErwin de Haan
2019-01-13Find+Sed BOM removal *.cs: Jellyfin.Server-MediaBrowser.ControllerErwin de Haan
2018-12-27Add GPL modulesAndrew Rabert
2018-09-12Update to 3.5.2 and .net core 2.1stefan
2014-01-13save web client view selectionLuke Pulverenti