mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 13:57:14 -04:00
Update LibraryService.cs
This commit is contained in:
parent
e98600a76f
commit
a661b37c12
@ -350,6 +350,7 @@ namespace MediaBrowser.Api.Library
|
|||||||
_moviesServiceLogger = moviesServiceLogger;
|
_moviesServiceLogger = moviesServiceLogger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Content Types available for each Library
|
||||||
private string[] GetRepresentativeItemTypes(string contentType)
|
private string[] GetRepresentativeItemTypes(string contentType)
|
||||||
{
|
{
|
||||||
return contentType switch
|
return contentType switch
|
||||||
@ -359,7 +360,7 @@ namespace MediaBrowser.Api.Library
|
|||||||
CollectionType.Movies => new[] {"Movie"},
|
CollectionType.Movies => new[] {"Movie"},
|
||||||
CollectionType.TvShows => new[] {"Series", "Season", "Episode"},
|
CollectionType.TvShows => new[] {"Series", "Season", "Episode"},
|
||||||
CollectionType.Books => new[] {"Book"},
|
CollectionType.Books => new[] {"Book"},
|
||||||
CollectionType.Music => new[] {"MusicAlbum", "MusicArtist", "Audio", "MusicVideo"},
|
CollectionType.Music => new[] {"MusicArtist", "MusicAlbum", "Audio", "MusicVideo"},
|
||||||
CollectionType.HomeVideos => new[] {"Video", "Photo"},
|
CollectionType.HomeVideos => new[] {"Video", "Photo"},
|
||||||
CollectionType.Photos => new[] {"Video", "Photo"},
|
CollectionType.Photos => new[] {"Video", "Photo"},
|
||||||
CollectionType.MusicVideos => new[] {"MusicVideo"},
|
CollectionType.MusicVideos => new[] {"MusicVideo"},
|
||||||
@ -425,7 +426,6 @@ namespace MediaBrowser.Api.Library
|
|||||||
return string.Equals(name, "TheTVDB", StringComparison.OrdinalIgnoreCase)
|
return string.Equals(name, "TheTVDB", StringComparison.OrdinalIgnoreCase)
|
||||||
|| string.Equals(name, "Screen Grabber", StringComparison.OrdinalIgnoreCase)
|
|| string.Equals(name, "Screen Grabber", StringComparison.OrdinalIgnoreCase)
|
||||||
|| string.Equals(name, "TheAudioDB", StringComparison.OrdinalIgnoreCase)
|
|| string.Equals(name, "TheAudioDB", StringComparison.OrdinalIgnoreCase)
|
||||||
|| string.Equals(name, "Emby Designs", StringComparison.OrdinalIgnoreCase)
|
|
||||||
|| string.Equals(name, "Image Extractor", StringComparison.OrdinalIgnoreCase);
|
|| string.Equals(name, "Image Extractor", StringComparison.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user