diff options
| author | Cody Robibero <cody@robibe.ro> | 2026-08-02 14:25:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-02 14:25:00 -0400 |
| commit | 24022092adfb5fa1c7d4e93ffa8027f893249886 (patch) | |
| tree | 35ae2ec504cf1c2f760e9e53182887c71526dd34 /MediaBrowser.Providers | |
| parent | e2e3094d2d4e022cde3f688a44446853ca553b2b (diff) | |
| parent | 79a55327dcb3899fb85147f7ec6b19cd71e5dcfb (diff) | |
Merge pull request #17456 from Shadowghost/fix-extras
Fix extras naming and version assignment
Diffstat (limited to 'MediaBrowser.Providers')
| -rw-r--r-- | MediaBrowser.Providers/Manager/ProviderManager.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/MediaBrowser.Providers/Manager/ProviderManager.cs b/MediaBrowser.Providers/Manager/ProviderManager.cs index 73df6d03d2..45fbe4d348 100644 --- a/MediaBrowser.Providers/Manager/ProviderManager.cs +++ b/MediaBrowser.Providers/Manager/ProviderManager.cs @@ -436,6 +436,14 @@ namespace MediaBrowser.Providers.Manager return false; } + // Extras have no identity of their own in an online database, so remote artwork for them + // is always some other item's. Local and dynamic providers still apply, so an extra can + // keep an embedded thumbnail or an extracted frame. + if (item.ExtraType.HasValue && provider is IRemoteImageProvider) + { + return false; + } + return _baseItemManager.IsImageFetcherEnabled(item, libraryTypeOptions, provider.Name); } @@ -584,6 +592,14 @@ namespace MediaBrowser.Providers.Manager return true; } + // An extra is a local file belonging to another item and has no identity of its own in an + // online database. Looking it up matches whatever the surrounding folder happens to be + // called and overwrites the extra's name with a different item's title. + if (item.ExtraType.HasValue) + { + return false; + } + // Artists without a folder structure that are derived from metadata have no real path in the library, // so GetLibraryOptions returns null. Allow all providers through rather than blocking them. if (item is MusicArtist && libraryTypeOptions is null) |
