Apply suggestions from code review

pull/6808/head
Claus Vium 3 years ago committed by GitHub
parent ac06022e0f
commit 66912deb84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -700,11 +700,11 @@ namespace Emby.Dlna.ContentDirectory
case StubType.AlbumArtists: case StubType.AlbumArtists:
return GetMusicAlbumArtists(item, query); return GetMusicAlbumArtists(item, query);
case StubType.FavoriteAlbums: case StubType.FavoriteAlbums:
return GetChildrenOfItem(item, query, nameof(MusicAlbum)); return GetChildrenOfItem(item, query, nameof(MusicAlbum), true);
case StubType.FavoriteArtists: case StubType.FavoriteArtists:
return GetFavoriteArtists(item, query); return GetFavoriteArtists(item, query);
case StubType.FavoriteSongs: case StubType.FavoriteSongs:
return GetChildrenOfItem(item, query, nameof(Audio)); return GetChildrenOfItem(item, query, nameof(Audio), true);
case StubType.Songs: case StubType.Songs:
return GetChildrenOfItem(item, query, nameof(Audio)); return GetChildrenOfItem(item, query, nameof(Audio));
case StubType.Genres: case StubType.Genres:
@ -767,7 +767,7 @@ namespace Emby.Dlna.ContentDirectory
case StubType.Collections: case StubType.Collections:
return GetMovieCollections(query); return GetMovieCollections(query);
case StubType.Favorites: case StubType.Favorites:
return GetChildrenOfItem(item, query, nameof(Movie)); return GetChildrenOfItem(item, query, nameof(Movie), true);
case StubType.Genres: case StubType.Genres:
return GetGenres(item, query); return GetGenres(item, query);
} }
@ -850,9 +850,9 @@ namespace Emby.Dlna.ContentDirectory
case StubType.Series: case StubType.Series:
return GetChildrenOfItem(item, query, nameof(Series)); return GetChildrenOfItem(item, query, nameof(Series));
case StubType.FavoriteSeries: case StubType.FavoriteSeries:
return GetChildrenOfItem(item, query, nameof(Series)); return GetChildrenOfItem(item, query, nameof(Series), true);
case StubType.FavoriteEpisodes: case StubType.FavoriteEpisodes:
return GetChildrenOfItem(item, query, nameof(Episode)); return GetChildrenOfItem(item, query, nameof(Episode), true);
case StubType.Genres: case StubType.Genres:
return GetGenres(item, query); return GetGenres(item, query);
} }

Loading…
Cancel
Save