fixing exceptions for tests

This commit is contained in:
andy 2022-06-28 07:46:00 +01:00
parent 83e071f5c3
commit 6a4d83a6d6
2 changed files with 7 additions and 2 deletions

View File

@ -140,7 +140,12 @@ namespace Selector.Tests
{
Name = name,
Id = id ?? name,
SnapshotId = snapshotId ?? id ?? name
SnapshotId = snapshotId ?? id ?? name,
Tracks = new()
{
Items = new List<PlaylistTrack<IPlayableItem>>(),
Total = 0
}
};
}
}

View File

@ -139,7 +139,7 @@ namespace Selector
private async Task PageLiveTracks()
{
if (config.PullTracks)
if (config.PullTracks && Live.Tracks.Items.Count > 0)
{
Logger.LogDebug("Paging current tracks");