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,
ImageUrl = video.Channel.ThumbUrl,
Type = PersonType.Actor,
Type = Data.Enums.PersonKind.Actor,
});
result.HasMetadata = true;
result.Item = video.ToEpisode();
@@ -80,7 +80,7 @@ namespace Jellyfin.Plugin.TubeArchivistMetadata.Providers
var taApi = TubeArchivistApi.GetInstance();
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)
{
results.Add(video.ToSearchResult());
@@ -62,7 +62,7 @@ namespace Jellyfin.Plugin.TubeArchivistMetadata.Providers
{
Name = channel.Name,
ImageUrl = channel.ThumbUrl,
Type = PersonType.Actor,
Type = Data.Enums.PersonKind.Actor,
});
result.HasMetadata = true;
result.Item = channel.ToSeries();
@@ -80,7 +80,7 @@ namespace Jellyfin.Plugin.TubeArchivistMetadata.Providers
var taApi = TubeArchivistApi.GetInstance();
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)
{
results.Add(channel.ToSearchResult());