mirror of
https://github.com/Lidarr/Lidarr.git
synced 2026-03-02 22:56:57 -05:00
[FEAT]: add Lidarr_SourceFolder environmental variable to CustomScript.OnReleaseImport #1851
Labels
No labels
Area: API
Area: Database
Area: Db-migration
Area: Download Clients
Area: Extras
Area: Import Lists
Area: Indexer
Area: Metadata API
Area: Notifications
Area: Organizer
Area: Parser
Area: Scanning
Area: Tooling
Area: UI
Area: Unit Tests
Area: Update API
On Hold: MetadataAPI Blocking
Priority: High
Priority: Low
Priority: Medium
Status: Accepted
Status: Cannot Reproduce
Status: Confirmed
Status: Don't Merge
Status: Help Wanted
Status: In Progress
Status: Info Needed
Status: Investigating
Status: Logs Needed
Status: Maybe One Day
Status: Needs Triage
Status: On Hold
Status: Ready for Review
Status: Unlikely
Status: Waiting for OP
Status: Won't Fix
Type: Bug
Type: Documentation
Type: Duplicate
Type: Enhancement
Type: Enhancement
Type: External Bug
Type: Feature Request
Type: Regression
Type: Support
Type: Support.
conflict
conflict
no-conflict
not-pulled
radarr-pull
readarr-pull
sonarr upstream
sonarr-pull
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Lidarr#1851
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SenorSmartyPants on GitHub (Nov 14, 2021).
Is there an existing issue for this?
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.
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
@jviall commented on GitHub (Jan 31, 2026):
Any chance this will ever be implemented?