mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
go directly to music brainz
This commit is contained in:
parent
15663a0858
commit
b1f0addc6c
@ -783,6 +783,9 @@ namespace MediaBrowser.Api.Images
|
|||||||
imageIndex = entity.BackdropImagePaths.Count;
|
imageIndex = entity.BackdropImagePaths.Count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Handle image/png; charset=utf-8
|
||||||
|
mimeType = mimeType.Split(';').FirstOrDefault();
|
||||||
|
|
||||||
await _providerManager.SaveImage(entity, memoryStream, mimeType, imageType, imageIndex, CancellationToken.None).ConfigureAwait(false);
|
await _providerManager.SaveImage(entity, memoryStream, mimeType, imageType, imageIndex, CancellationToken.None).ConfigureAwait(false);
|
||||||
|
|
||||||
await entity.RefreshMetadata(CancellationToken.None, forceRefresh: true, forceSave: true, allowSlowProviders: false).ConfigureAwait(false);
|
await entity.RefreshMetadata(CancellationToken.None, forceRefresh: true, forceSave: true, allowSlowProviders: false).ConfigureAwait(false);
|
||||||
|
@ -78,16 +78,16 @@ namespace MediaBrowser.Providers.Music
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to find the id using last fm
|
//// Try to find the id using last fm
|
||||||
var result = await FindIdFromLastFm(item, cancellationToken).ConfigureAwait(false);
|
//var result = await FindIdFromLastFm(item, cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
if (result != null)
|
//if (result != null)
|
||||||
{
|
//{
|
||||||
if (!string.IsNullOrEmpty(result))
|
// if (!string.IsNullOrEmpty(result))
|
||||||
{
|
// {
|
||||||
return result;
|
// return result;
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user