mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 22:38:30 +01:00
updated nuget
This commit is contained in:
@@ -129,17 +129,13 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
/// <param name="user">The user.</param>
|
||||
private void AttachItemByNameCounts(BaseItemDto dto, IItemByName item, User user)
|
||||
{
|
||||
ItemByNameCounts counts;
|
||||
|
||||
if (user == null)
|
||||
{
|
||||
//counts = item.ItemCounts;
|
||||
return;
|
||||
}
|
||||
if (!item.UserItemCounts.TryGetValue(user.Id, out counts))
|
||||
{
|
||||
counts = new ItemByNameCounts();
|
||||
}
|
||||
|
||||
ItemByNameCounts counts = item.GetItemByNameCounts(user.Id) ?? new ItemByNameCounts();
|
||||
|
||||
dto.ChildCount = counts.TotalCount;
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
|
||||
|
||||
if (userId.HasValue)
|
||||
{
|
||||
artist.UserItemCounts[userId.Value] = counts;
|
||||
artist.SetItemByNameCounts(userId.Value, counts);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
|
||||
{
|
||||
var itemCounts = CountHelpers.GetCounts(counts[libraryId]);
|
||||
|
||||
itemByName.UserItemCounts[libraryId] = itemCounts;
|
||||
itemByName.SetItemByNameCounts(libraryId, itemCounts);
|
||||
}
|
||||
|
||||
await itemByName.RefreshMetadata(cancellationToken).ConfigureAwait(false);
|
||||
|
||||
@@ -107,7 +107,7 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
|
||||
{
|
||||
var itemCounts = CountHelpers.GetCounts(counts[libraryId]);
|
||||
|
||||
itemByName.UserItemCounts[libraryId] = itemCounts;
|
||||
itemByName.SetItemByNameCounts(libraryId, itemCounts);
|
||||
}
|
||||
|
||||
await itemByName.RefreshMetadata(cancellationToken).ConfigureAwait(false);
|
||||
|
||||
@@ -107,7 +107,7 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
|
||||
{
|
||||
var itemCounts = CountHelpers.GetCounts(counts[libraryId]);
|
||||
|
||||
itemByName.UserItemCounts[libraryId] = itemCounts;
|
||||
itemByName.SetItemByNameCounts(libraryId, itemCounts);
|
||||
}
|
||||
|
||||
await itemByName.RefreshMetadata(cancellationToken).ConfigureAwait(false);
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
|
||||
{
|
||||
var itemCounts = CountHelpers.GetCounts(counts[libraryId]);
|
||||
|
||||
itemByName.UserItemCounts[libraryId] = itemCounts;
|
||||
itemByName.SetItemByNameCounts(libraryId, itemCounts);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
|
||||
{
|
||||
var itemCounts = CountHelpers.GetCounts(counts[libraryId]);
|
||||
|
||||
itemByName.UserItemCounts[libraryId] = itemCounts;
|
||||
itemByName.SetItemByNameCounts(libraryId, itemCounts);
|
||||
}
|
||||
|
||||
await itemByName.RefreshMetadata(cancellationToken).ConfigureAwait(false);
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
// Dummy up the original url
|
||||
var url = channel.ServiceName + channel.ChannelId;
|
||||
|
||||
await _providerManager.SaveImage(channel, response.Content, response.ContentType, ImageType.Primary, null, url, cancellationToken).ConfigureAwait(false);
|
||||
await _providerManager.SaveImage(channel, response.Stream, response.MimeType, ImageType.Primary, null, url, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -209,7 +209,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
OriginalAirDate = program.OriginalAirDate,
|
||||
Audio = program.Audio,
|
||||
CommunityRating = program.CommunityRating,
|
||||
AspectRatio = program.AspectRatio
|
||||
AspectRatio = program.AspectRatio,
|
||||
IsRepeat = program.IsRepeat,
|
||||
EpisodeTitle = program.EpisodeTitle
|
||||
};
|
||||
}
|
||||
|
||||
@@ -297,21 +299,6 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
|
||||
var returnArray = programs.ToArray();
|
||||
|
||||
var recordings = await GetRecordings(new RecordingQuery
|
||||
{
|
||||
|
||||
|
||||
}, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
foreach (var program in returnArray)
|
||||
{
|
||||
var recording = recordings.Items
|
||||
.FirstOrDefault(i => string.Equals(i.ProgramId, program.Id));
|
||||
|
||||
program.RecordingId = recording == null ? null : recording.Id;
|
||||
program.RecordingStatus = recording == null ? (RecordingStatus?)null : recording.Status;
|
||||
}
|
||||
|
||||
return new QueryResult<ProgramInfoDto>
|
||||
{
|
||||
Items = returnArray,
|
||||
@@ -400,7 +387,11 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
Id = id,
|
||||
ExternalId = info.Id,
|
||||
ChannelId = GetInternalChannelId(service.Name, info.ChannelId, info.ChannelName).ToString("N"),
|
||||
Status = info.Status
|
||||
Status = info.Status,
|
||||
Path = info.Path,
|
||||
Genres = info.Genres,
|
||||
IsRepeat = info.IsRepeat,
|
||||
EpisodeTitle = info.EpisodeTitle
|
||||
};
|
||||
|
||||
if (!string.IsNullOrEmpty(info.ProgramId))
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace MediaBrowser.Server.Implementations.Sorting
|
||||
|
||||
if (itemByName != null)
|
||||
{
|
||||
var counts = itemByName.GetItemByNameCounts(User);
|
||||
var counts = itemByName.GetItemByNameCounts(User.Id);
|
||||
|
||||
if (counts != null)
|
||||
{
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace MediaBrowser.Server.Implementations.Sorting
|
||||
|
||||
if (itemByName != null)
|
||||
{
|
||||
var counts = itemByName.GetItemByNameCounts(User);
|
||||
var counts = itemByName.GetItemByNameCounts(User.Id);
|
||||
|
||||
if (counts != null)
|
||||
{
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace MediaBrowser.Server.Implementations.Sorting
|
||||
|
||||
if (itemByName != null)
|
||||
{
|
||||
var counts = itemByName.GetItemByNameCounts(User);
|
||||
var counts = itemByName.GetItemByNameCounts(User.Id);
|
||||
|
||||
if (counts != null)
|
||||
{
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace MediaBrowser.Server.Implementations.Sorting
|
||||
|
||||
if (itemByName != null)
|
||||
{
|
||||
var counts = itemByName.GetItemByNameCounts(User);
|
||||
var counts = itemByName.GetItemByNameCounts(User.Id);
|
||||
|
||||
if (counts != null)
|
||||
{
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace MediaBrowser.Server.Implementations.Sorting
|
||||
|
||||
if (itemByName != null)
|
||||
{
|
||||
var counts = itemByName.GetItemByNameCounts(User);
|
||||
var counts = itemByName.GetItemByNameCounts(User.Id);
|
||||
|
||||
if (counts != null)
|
||||
{
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace MediaBrowser.Server.Implementations.Sorting
|
||||
|
||||
if (itemByName != null)
|
||||
{
|
||||
var counts = itemByName.GetItemByNameCounts(User);
|
||||
var counts = itemByName.GetItemByNameCounts(User.Id);
|
||||
|
||||
if (counts != null)
|
||||
{
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace MediaBrowser.Server.Implementations.Sorting
|
||||
|
||||
if (itemByName != null)
|
||||
{
|
||||
var counts = itemByName.GetItemByNameCounts(User);
|
||||
var counts = itemByName.GetItemByNameCounts(User.Id);
|
||||
|
||||
if (counts != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user