Adapt to support Jellyfin 10.9 API

This commit is contained in:
DarkFighterLuke
2024-04-26 11:57:42 +02:00
parent 604ed24f7c
commit 14032d3ed3
2 changed files with 4 additions and 4 deletions
@@ -62,7 +62,7 @@ namespace Jellyfin.Plugin.TubeArchivistMetadata.Providers
{ {
Name = video.Channel.Name, Name = video.Channel.Name,
ImageUrl = video.Channel.ThumbUrl, ImageUrl = video.Channel.ThumbUrl,
Type = PersonType.Actor, Type = Data.Enums.PersonKind.Actor,
}); });
result.HasMetadata = true; result.HasMetadata = true;
result.Item = video.ToEpisode(); result.Item = video.ToEpisode();
@@ -80,7 +80,7 @@ namespace Jellyfin.Plugin.TubeArchivistMetadata.Providers
var taApi = TubeArchivistApi.GetInstance(); var taApi = TubeArchivistApi.GetInstance();
var videoTAId = searchInfo.Path.Split("/").Last().Split(".").First(); var videoTAId = searchInfo.Path.Split("/").Last().Split(".").First();
var video = await taApi.GetVideo(videoTAId).ConfigureAwait(true); var video = await taApi.GetVideo(videoTAId).ConfigureAwait(false);
if (video != null) if (video != null)
{ {
results.Add(video.ToSearchResult()); results.Add(video.ToSearchResult());
@@ -62,7 +62,7 @@ namespace Jellyfin.Plugin.TubeArchivistMetadata.Providers
{ {
Name = channel.Name, Name = channel.Name,
ImageUrl = channel.ThumbUrl, ImageUrl = channel.ThumbUrl,
Type = PersonType.Actor, Type = Data.Enums.PersonKind.Actor,
}); });
result.HasMetadata = true; result.HasMetadata = true;
result.Item = channel.ToSeries(); result.Item = channel.ToSeries();
@@ -80,7 +80,7 @@ namespace Jellyfin.Plugin.TubeArchivistMetadata.Providers
var taApi = TubeArchivistApi.GetInstance(); var taApi = TubeArchivistApi.GetInstance();
var channelTAId = searchInfo.Path.Split("/").Last(); var channelTAId = searchInfo.Path.Split("/").Last();
var channel = await taApi.GetChannel(channelTAId).ConfigureAwait(true); var channel = await taApi.GetChannel(channelTAId).ConfigureAwait(false);
if (channel != null) if (channel != null)
{ {
results.Add(channel.ToSearchResult()); results.Add(channel.ToSearchResult());