|
@@ -55,6 +55,12 @@ namespace MediaBrowser.Providers.Plugins.AudioDb
|
|
|
{
|
|
|
var result = new MetadataResult<MusicAlbum>();
|
|
|
|
|
|
+ // TODO maybe remove when artist metadata can be disabled
|
|
|
+ if (!Plugin.Instance.Configuration.Enable)
|
|
|
+ {
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
var id = info.GetReleaseGroupId();
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(id))
|
|
@@ -78,6 +84,11 @@ namespace MediaBrowser.Providers.Plugins.AudioDb
|
|
|
|
|
|
private void ProcessResult(MusicAlbum item, Album result, string preferredLanguage)
|
|
|
{
|
|
|
+ if (Plugin.Instance.Configuration.ReplaceAlbumName && !string.IsNullOrWhiteSpace(result.strAlbum))
|
|
|
+ {
|
|
|
+ item.Album = result.strAlbum;
|
|
|
+ }
|
|
|
+
|
|
|
if (!string.IsNullOrWhiteSpace(result.strArtist))
|
|
|
{
|
|
|
item.AlbumArtists = new string[] { result.strArtist };
|