fixed audio image not extracting

pull/702/head
Luke Pulverenti 12 years ago
parent 410b46f05d
commit 718aa28216

@ -56,6 +56,30 @@ namespace MediaBrowser.Controller.Providers.MediaInfo
ImageCache = new FileSystemRepository(Kernel.Instance.FFMpegManager.AudioImagesDataPath); ImageCache = new FileSystemRepository(Kernel.Instance.FFMpegManager.AudioImagesDataPath);
} }
/// <summary>
/// Gets a value indicating whether [refresh on version change].
/// </summary>
/// <value><c>true</c> if [refresh on version change]; otherwise, <c>false</c>.</value>
protected override bool RefreshOnVersionChange
{
get
{
return true;
}
}
/// <summary>
/// Gets the provider version.
/// </summary>
/// <value>The provider version.</value>
protected override string ProviderVersion
{
get
{
return "1";
}
}
/// <summary> /// <summary>
/// Supportses the specified item. /// Supportses the specified item.
/// </summary> /// </summary>
@ -150,17 +174,17 @@ namespace MediaBrowser.Controller.Providers.MediaInfo
{ {
semaphore.Release(); semaphore.Release();
} }
// Image is already in the cache
item.PrimaryImagePath = path;
await _libraryManager.UpdateItem(item, cancellationToken).ConfigureAwait(false);
} }
else else
{ {
semaphore.Release(); semaphore.Release();
} }
} }
// Image is already in the cache
item.PrimaryImagePath = path;
await _libraryManager.UpdateItem(item, cancellationToken).ConfigureAwait(false);
} }
/// <summary> /// <summary>

Loading…
Cancel
Save