mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 06:17:14 -04:00
fix music scan
This commit is contained in:
parent
477803b389
commit
c87dd6008a
@ -447,18 +447,21 @@ namespace MediaBrowser.Providers.Manager
|
|||||||
successfulProviderCount += remoteResult.Successes;
|
successfulProviderCount += remoteResult.Successes;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If no local providers and doing a full refresh, take data from item itself
|
if (providers.Any(i => !(i is ICustomMetadataProvider)))
|
||||||
if (options.MetadataRefreshMode == MetadataRefreshMode.FullRefresh &&
|
|
||||||
localProviders.Count == 0 &&
|
|
||||||
refreshResult.UpdateType > ItemUpdateType.None)
|
|
||||||
{
|
{
|
||||||
// TODO: If the new metadata from above has some blank data, this can cause old data to get filled into those empty fields
|
// If no local providers and doing a full refresh, take data from item itself
|
||||||
MergeData(item, temp, new List<MetadataFields>(), false, true);
|
if (options.MetadataRefreshMode == MetadataRefreshMode.FullRefresh &&
|
||||||
}
|
localProviders.Count == 0 &&
|
||||||
|
refreshResult.UpdateType > ItemUpdateType.None)
|
||||||
|
{
|
||||||
|
// TODO: If the new metadata from above has some blank data, this can cause old data to get filled into those empty fields
|
||||||
|
MergeData(item, temp, new List<MetadataFields>(), false, true);
|
||||||
|
}
|
||||||
|
|
||||||
if (refreshResult.UpdateType > ItemUpdateType.None)
|
if (refreshResult.UpdateType > ItemUpdateType.None)
|
||||||
{
|
{
|
||||||
MergeData(temp, item, item.LockedFields, true, true);
|
MergeData(temp, item, item.LockedFields, true, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var isUnidentified = failedProviderCount > 0 && successfulProviderCount == 0;
|
var isUnidentified = failedProviderCount > 0 && successfulProviderCount == 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user