mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-25 09:12:17 +00:00
Fixed: Artist Type, MBId OnRename in CustomScript.cs
This commit is contained in:
parent
c2ee23b6d9
commit
db10057f2c
1 changed files with 6 additions and 6 deletions
|
@ -39,7 +39,7 @@ public override void OnGrab(GrabMessage message)
|
|||
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 @@ public override void OnDownload(DownloadMessage message)
|
|||
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 @@ public override void OnRename(Artist artist)
|
|||
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue