mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #14209 from theguymadmax/themoviedb-year-cache-key
Add year parameter to TMDB series cache key
This commit is contained in:
commit
f4bce38ddb
@ -374,7 +374,7 @@ namespace MediaBrowser.Providers.Plugins.Tmdb
|
|||||||
/// <returns>The TMDb tv show information.</returns>
|
/// <returns>The TMDb tv show information.</returns>
|
||||||
public async Task<IReadOnlyList<SearchTv>> SearchSeriesAsync(string name, string language, int year = 0, CancellationToken cancellationToken = default)
|
public async Task<IReadOnlyList<SearchTv>> SearchSeriesAsync(string name, string language, int year = 0, CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
var key = $"searchseries-{name}-{language}";
|
var key = $"searchseries-{name}-{year.ToString(CultureInfo.InvariantCulture)}-{language}";
|
||||||
if (_memoryCache.TryGetValue(key, out SearchContainer<SearchTv>? series) && series is not null)
|
if (_memoryCache.TryGetValue(key, out SearchContainer<SearchTv>? series) && series is not null)
|
||||||
{
|
{
|
||||||
return series.Results;
|
return series.Results;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user