[FEAT]: add Lidarr_SourceFolder environmental variable to CustomScript.OnReleaseImport #1851

Open
opened 2026-02-20 02:00:24 -05:00 by deekerman · 1 comment
Owner

Originally created by @SenorSmartyPants on GitHub (Nov 14, 2021).

Is there an existing issue for this?

  • I have searched the existing issues

Custom script does not provide a variable to source album path in download client.

Describe the solution you'd like

Similar to Sonarr_EpisodeFile_SourceFolder, add an environmental variable to point to the source directory of the album in the download directory. This would allow custom scripts to copy extra files that lidarr doesn't handle, for example.

Describe alternatives you've considered

Attempting to script this in the download client doesn't seem possible as the Lidarr album destination is not known at that time.

Anything else?

Lidarr relevant source code.
github.com/Lidarr/Lidarr@3d1437bf18/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs (L63-L95)

Sonarr example
github.com/Sonarr/Sonarr@a97e83ea4d/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs (L71-L113)

AB#1903

Originally created by @SenorSmartyPants on GitHub (Nov 14, 2021). ### Is there an existing issue for this? - [X] I have searched the existing issues ### Is your feature request related to a problem? Please describe Custom script does not provide a variable to source album path in download client. ### Describe the solution you'd like Similar to Sonarr_EpisodeFile_SourceFolder, add an environmental variable to point to the source directory of the album in the download directory. This would allow custom scripts to copy extra files that lidarr doesn't handle, for example. ### Describe alternatives you've considered Attempting to script this in the download client doesn't seem possible as the Lidarr album destination is not known at that time. ### Anything else? Lidarr relevant source code. https://github.com/Lidarr/Lidarr/blob/3d1437bf18850c0e6d78cabc7422b81c68e2e7e8/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs#L63-L95 Sonarr example https://github.com/Sonarr/Sonarr/blob/a97e83ea4d610e30902f835ad8d36914baadc323/src/NzbDrone.Core/Notifications/CustomScript/CustomScript.cs#L71-L113 [AB#1903](https://dev.azure.com/Servarr/7ab38f4e-5a57-4d70-84f4-94dd9bc5d6df/_workitems/edit/1903)
Author
Owner

@jviall commented on GitHub (Jan 31, 2026):

Any chance this will ever be implemented?

@jviall commented on GitHub (Jan 31, 2026): Any chance this will ever be implemented?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Lidarr#1851
No description provided.