mirror of
https://github.com/Lidarr/Lidarr
synced 2025-12-12 19:33:52 +01:00
Add album MBId to custom script
This commit is contained in:
parent
8681f3b447
commit
3011f5092a
1 changed files with 1 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ public override void OnGrab(GrabMessage message)
|
|||
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)));
|
||||
environmentVariables.Add("Lidarr_Release_AlbumMBIds", string.Join("|", remoteAlbum.Albums.Select(e => e.ForeignAlbumId)));
|
||||
environmentVariables.Add("Lidarr_Release_Title", remoteAlbum.Release.Title);
|
||||
environmentVariables.Add("Lidarr_Release_Indexer", remoteAlbum.Release.Indexer ?? string.Empty);
|
||||
environmentVariables.Add("Lidarr_Release_Size", remoteAlbum.Release.Size.ToString());
|
||||
|
|
|
|||
Loading…
Reference in a new issue