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:
parent
d198c9987e
commit
f0d1cde01a
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue