mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
improve performance of getting channel list
This commit is contained in:
@@ -146,7 +146,7 @@ namespace Emby.Server.Implementations.Dto
|
||||
|
||||
if (channelTuples.Count > 0)
|
||||
{
|
||||
_livetvManager().AddChannelInfo(channelTuples, options, user);
|
||||
await _livetvManager().AddChannelInfo(channelTuples, options, user).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
return list;
|
||||
@@ -161,7 +161,8 @@ namespace Emby.Server.Implementations.Dto
|
||||
if (tvChannel != null)
|
||||
{
|
||||
var list = new List<Tuple<BaseItemDto, LiveTvChannel>> { new Tuple<BaseItemDto, LiveTvChannel>(dto, tvChannel) };
|
||||
_livetvManager().AddChannelInfo(list, options, user);
|
||||
var task = _livetvManager().AddChannelInfo(list, options, user);
|
||||
Task.WaitAll(task);
|
||||
}
|
||||
else if (item is LiveTvProgram)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user