feat: fetch cover, logo and stills from Kinopoisk

The plugin only returned the single poster (posterUrl). The API also exposes
coverUrl (wide), logoUrl and /films/{id}/images (stills). Map them to
Backdrop/Logo/Thumb and deduplicate URL availability checks.
This commit is contained in:
1xDed committed 2026-11-27 10:02:46 +03:00
1 parent 6ab8025c05
commit 91555d3872
11 files changed
+192 -15

No files matched your search

@@ -38,7 +38,9 @@ namespace Jellyfin.Plugin.Kinopoisk.MetadataProviders
=> new ImageType[]
{
ImageType.Primary,
ImageType.Backdrop
ImageType.Backdrop,
ImageType.Thumb,
ImageType.Logo
};
public override async Task<IEnumerable<RemoteImageInfo>> GetImages(BaseItem item, CancellationToken cancellationToken)
@@ -48,8 +50,15 @@ namespace Jellyfin.Plugin.Kinopoisk.MetadataProviders
return Enumerable.Empty<RemoteImageInfo>();
var film = await _apiClient.GetSingleFilm(kinopoiskId, cancellationToken);
var images = await _apiClient.GetFilmImages(kinopoiskId, cancellationToken);
return await FilterEmptyImages(film.ToRemoteImageInfos());
var all = film.ToRemoteImageInfos(images).ToArray();
var filtered = await FilterEmptyImages(all);
_logger.LogInformation(
"Kinopoisk returned {Count} images for {Name}",
filtered.Count(),
item.Name);
return filtered;
}
}
}