mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 21:37:59 +03:00
Merge pull request #17287 from dkanada/audiobook-cover
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user