Use nameof where possible

This commit is contained in:
Bond_009
2020-10-17 16:19:57 +02:00
parent 51dd3f1e19
commit 49569ca0a0
26 changed files with 127 additions and 116 deletions

View File

@@ -85,8 +85,8 @@ namespace Jellyfin.Api.Controllers
IncludeItemTypes = new[]
{
nameof(Movie),
// typeof(Trailer).Name,
// typeof(LiveTvProgram).Name
// nameof(Trailer),
// nameof(LiveTvProgram)
},
// IsMovie = true
OrderBy = new[] { ItemSortBy.DatePlayed, ItemSortBy.Random }.Select(i => new ValueTuple<string, SortOrder>(i, SortOrder.Descending)).ToArray(),