Merge pull request #17287 from dkanada/audiobook-cover

This commit is contained in:
Bond-009
2026-07-12 17:39:34 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ namespace MediaBrowser.LocalMetadata.Images
if (item.SupportsLocalMetadata) if (item.SupportsLocalMetadata)
{ {
// Episode has its own provider // Episode has its own provider
if (item is Episode || item is Audio || item is Photo) if (item is Episode || (item is Audio && item is not AudioBook) || item is Photo)
{ {
return false; return false;
} }

View File

@@ -90,7 +90,7 @@ namespace MediaBrowser.Providers.Manager
{ {
ArgumentException.ThrowIfNullOrEmpty(mimeType); ArgumentException.ThrowIfNullOrEmpty(mimeType);
var saveLocally = item.SupportsLocalMetadata && item.IsSaveLocalMetadataEnabled() && !item.ExtraType.HasValue && item is not Audio; var saveLocally = item.SupportsLocalMetadata && item.IsSaveLocalMetadataEnabled() && !item.ExtraType.HasValue && (item is AudioBook || item is not Audio);
if (type != ImageType.Primary && item is Episode) if (type != ImageType.Primary && item is Episode)
{ {