From db10057f2c0fd8472af7b0b6cd5e34fdcc835e4a Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 30 Oct 2017 20:51:46 -0400 Subject: [PATCH] Fixed: Artist Type, MBId OnRename in CustomScript.cs --- .../Notifications/CustomScript/CustomScript.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs index 87894ceb6..99048708d 100644 --- a/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs +++ b/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs @@ -39,7 +39,7 @@ namespace NzbDrone.Core.Notifications.CustomScript environmentVariables.Add("Lidarr_Artist_Id", artist.Id.ToString()); environmentVariables.Add("Lidarr_Artist_Name", artist.Name); environmentVariables.Add("Lidarr_Artist_MBId", artist.ForeignArtistId.ToString()); - //environmentVariables.Add("Lidarr_Artist_Type", artist.SeriesType.ToString()); + environmentVariables.Add("Lidarr_Artist_Type", artist.ArtistType); environmentVariables.Add("Lidarr_Release_AlbumCount", remoteAlbum.Albums.Count.ToString()); environmentVariables.Add("Lidarr_Release_AlbumReleaseDates", string.Join(",", remoteAlbum.Albums.Select(e => e.ReleaseDate))); environmentVariables.Add("Lidarr_Release_AlbumTitles", string.Join("|", remoteAlbum.Albums.Select(e => e.Title))); @@ -68,9 +68,9 @@ namespace NzbDrone.Core.Notifications.CustomScript environmentVariables.Add("Lidarr_Artist_Name", artist.Name); environmentVariables.Add("Lidarr_Artist_Path", artist.Path); environmentVariables.Add("Lidarr_Artist_MBId", artist.ForeignArtistId.ToString()); - //environmentVariables.Add("Lidarr_Artist_Type", artist.SeriesType.ToString()); + environmentVariables.Add("Lidarr_Artist_Type", artist.ArtistType); environmentVariables.Add("Lidarr_TrackFile_Id", trackFile.Id.ToString()); - environmentVariables.Add("Lidarr_TrackFile_EpisodeCount", trackFile.Tracks.Value.Count.ToString()); + environmentVariables.Add("Lidarr_TrackFile_TrackCount", trackFile.Tracks.Value.Count.ToString()); environmentVariables.Add("Lidarr_TrackFile_RelativePath", trackFile.RelativePath); environmentVariables.Add("Lidarr_TrackFile_Path", Path.Combine(artist.Path, trackFile.RelativePath)); environmentVariables.Add("Lidarr_TrackFile_TrackNumbers", string.Join(",", trackFile.Tracks.Value.Select(e => e.TrackNumber))); @@ -100,10 +100,10 @@ namespace NzbDrone.Core.Notifications.CustomScript environmentVariables.Add("Lidarr_EventType", "Rename"); environmentVariables.Add("Lidarr_Artist_Id", artist.Id.ToString()); - environmentVariables.Add("Lidarr_Artist_Title", artist.Name); + environmentVariables.Add("Lidarr_Artist_Name", artist.Name); environmentVariables.Add("Lidarr_Artist_Path", artist.Path); - environmentVariables.Add("Lidarr_Artist_TvdbId", artist.ForeignArtistId.ToString()); - //environmentVariables.Add("Lidarr_Artist_Type", artist.SeriesType.ToString()); + environmentVariables.Add("Lidarr_Artist_MBId", artist.ForeignArtistId.ToString()); + environmentVariables.Add("Lidarr_Artist_Type", artist.ArtistType); ExecuteScript(environmentVariables); }