1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-25 01:02:05 +00:00

Fixed: SourceTitle if Album Title null in Discord ImportFailed event

Fixes #2134
This commit is contained in:
Qstick 2021-04-01 22:53:35 -04:00
parent d198c9987e
commit f0d1cde01a
2 changed files with 2 additions and 2 deletions

View file

@ -299,7 +299,7 @@ public override void OnImportFailure(AlbumDownloadMessage message)
IconUrl = "https://raw.githubusercontent.com/lidarr/Lidarr/develop/Logo/256.png"
},
Description = message.Message,
Title = message.Album.Title,
Title = message.Album?.Title ?? message.Message,
Text = message.Message,
Color = (int)DiscordColors.Warning
}

View file

@ -241,7 +241,7 @@ public void Handle(AlbumImportIncompleteEvent message)
// TODO: Build out this message so that we can pass on what failed and what was successful
var downloadMessage = new AlbumDownloadMessage
{
Message = GetAlbumIncompleteImportMessage(message.TrackedDownload.DownloadItem.Title),
Message = GetAlbumIncompleteImportMessage(message.TrackedDownload.DownloadItem.Title)
};
foreach (var notification in _notificationFactory.OnImportFailureEnabled())