mirror of
https://github.com/Lidarr/Lidarr.git
synced 2026-03-03 00:26:58 -05:00
Add event for when a track is deleted #3346
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-Lidarr#3346
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 @mfreeborn on GitHub (Jan 18, 2024).
Is there an existing issue for this?
Is your feature request related to a problem? Please describe
I maintain a mirrored version of my music library in which any high-res tracks are downsampled to CD quality. I use this downsampled folder on my phone where hard drive space is an issue, whilst still having the highest quality version on my PC for when I'm listening at home.
I run a simple webhook server which listens for Lidarr events - principally "Download" events for when a release is imported to my music library and "AlbumDelete"/"ArtistDelete" for those self-explanatory events.
However, if I delete files in a particular release within the Lidarr UI (Manage Tracks > Delete), then the files are deleted from my primary music music library but no event is fired from Lidarr. As a result, my downsampled music library will fall out of sync because it doesn't know that the tracks have been deleted.
Is it possible to add an event for each track that is deleted from the Lidarr UI?
Describe the solution you'd like
A new "TrackDelete" event to be available.
Describe alternatives you've considered
Anything else?
@sirjmann92 commented on GitHub (Nov 5, 2024):
EDIT: I had some errors in my script that was causing part of my issue, so I've updated this post and removed some things. The rest is still valid.
Yes, please. TrackDeleted event should be added for custom scripting. Better yet, the scope of this "Issue" should be expanded to include other oddities and missing elements from the Custom Script API.
There are missing environment variables for other events that make custom scripts impossible. Such as an album path for the AlbumDeleted event. I used printenv to a log file for debugging and found several environment variables and/or event types are not available or incorrect.
These should all be reviewed and corrected/implemented:
When you delete an album, there is no album path for the AlbumDeleted event: