From 718aa2821678d4daaa143e0704bd180625eeb20d Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 22 May 2013 12:51:53 -0400 Subject: [PATCH] fixed audio image not extracting --- .../Providers/MediaInfo/AudioImageProvider.cs | 34 ++++++++++++++++--- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/MediaBrowser.Controller/Providers/MediaInfo/AudioImageProvider.cs b/MediaBrowser.Controller/Providers/MediaInfo/AudioImageProvider.cs index a925ad11d..881065ea6 100644 --- a/MediaBrowser.Controller/Providers/MediaInfo/AudioImageProvider.cs +++ b/MediaBrowser.Controller/Providers/MediaInfo/AudioImageProvider.cs @@ -56,6 +56,30 @@ namespace MediaBrowser.Controller.Providers.MediaInfo ImageCache = new FileSystemRepository(Kernel.Instance.FFMpegManager.AudioImagesDataPath); } + /// + /// Gets a value indicating whether [refresh on version change]. + /// + /// true if [refresh on version change]; otherwise, false. + protected override bool RefreshOnVersionChange + { + get + { + return true; + } + } + + /// + /// Gets the provider version. + /// + /// The provider version. + protected override string ProviderVersion + { + get + { + return "1"; + } + } + /// /// Supportses the specified item. /// @@ -150,17 +174,17 @@ namespace MediaBrowser.Controller.Providers.MediaInfo { semaphore.Release(); } - - // Image is already in the cache - item.PrimaryImagePath = path; - - await _libraryManager.UpdateItem(item, cancellationToken).ConfigureAwait(false); } else { semaphore.Release(); } } + + // Image is already in the cache + item.PrimaryImagePath = path; + + await _libraryManager.UpdateItem(item, cancellationToken).ConfigureAwait(false); } ///