mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
Convert CollectionType to use lowercase enum names
This commit is contained in:
@@ -927,15 +927,15 @@ public class LibraryController : BaseJellyfinApiController
|
||||
{
|
||||
return contentType switch
|
||||
{
|
||||
CollectionType.BoxSets => new[] { "BoxSet" },
|
||||
CollectionType.Playlists => new[] { "Playlist" },
|
||||
CollectionType.Movies => new[] { "Movie" },
|
||||
CollectionType.TvShows => new[] { "Series", "Season", "Episode" },
|
||||
CollectionType.Books => new[] { "Book" },
|
||||
CollectionType.Music => new[] { "MusicArtist", "MusicAlbum", "Audio", "MusicVideo" },
|
||||
CollectionType.HomeVideos => new[] { "Video", "Photo" },
|
||||
CollectionType.Photos => new[] { "Video", "Photo" },
|
||||
CollectionType.MusicVideos => new[] { "MusicVideo" },
|
||||
CollectionType.boxsets => new[] { "BoxSet" },
|
||||
CollectionType.playlists => new[] { "Playlist" },
|
||||
CollectionType.movies => new[] { "Movie" },
|
||||
CollectionType.tvshows => new[] { "Series", "Season", "Episode" },
|
||||
CollectionType.books => new[] { "Book" },
|
||||
CollectionType.music => new[] { "MusicArtist", "MusicAlbum", "Audio", "MusicVideo" },
|
||||
CollectionType.homevideos => new[] { "Video", "Photo" },
|
||||
CollectionType.photos => new[] { "Video", "Photo" },
|
||||
CollectionType.musicvideos => new[] { "MusicVideo" },
|
||||
_ => new[] { "Series", "Season", "Episode", "Movie" }
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user