Precache livetv program images (#11083)

* Precache livetv program images

* return if cache hit

* use EnsureSuccessStatusCode

* Read proper bytes
This commit is contained in:
Cody Robibero
2024-03-03 13:32:55 -07:00
committed by GitHub
parent 3bd1a5c557
commit f7f3ad9eb7
6 changed files with 137 additions and 47 deletions

View File

@@ -17,6 +17,7 @@ using MediaBrowser.Controller.Subtitles;
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.IO;
using MediaBrowser.Providers.Manager;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Moq;
@@ -572,7 +573,8 @@ namespace Jellyfin.Providers.Tests.Manager
Mock.Of<IServerApplicationPaths>(),
libraryManager.Object,
baseItemManager!,
Mock.Of<ILyricManager>());
Mock.Of<ILyricManager>(),
Mock.Of<IMemoryCache>());
return providerManager;
}