1
0
Fork 0
mirror of https://github.com/Lidarr/Lidarr.git synced 2026-03-03 00:26:58 -05:00

Custom scripting #1741

Closed
opened 2026-02-20 12:18:18 -05:00 by deekerman · 1 comment
Owner

Originally created by @Chris230291 on GitHub (Jul 30, 2021).

I don't want a discord or reddit account so this is mislabelled as a feature request... unless documentation on scripting can be classed is a feature request?

I have made a python script that takes an mp3 file and replaces the genre and adds artwork if missing (both using the lastfm api).
How do I make lidar run this script on my music?
I have lidarr set to tag and rename and keep in sync with musixbrainz.
Which events would I need to call my script from and what env variables do I need to use?

Cheers,
Chris

AB#1303

Originally created by @Chris230291 on GitHub (Jul 30, 2021). I don't want a discord or reddit account so this is mislabelled as a feature request... unless documentation on scripting can be classed is a feature request? I have made a python script that takes an mp3 file and replaces the genre and adds artwork if missing (both using the lastfm api). How do I make lidar run this script on my music? I have lidarr set to tag and rename and keep in sync with musixbrainz. Which events would I need to call my script from and what env variables do I need to use? Cheers, Chris [AB#1303](https://dev.azure.com/Servarr/7ab38f4e-5a57-4d70-84f4-94dd9bc5d6df/_workitems/edit/1303)
Author
Owner

@Chris230291 commented on GitHub (Jul 31, 2021):

I think I figured it out. The retag event seems to be the one I want and the var I am using is $lidarr_trackfile_path

@Chris230291 commented on GitHub (Jul 31, 2021): I think I figured it out. The retag event seems to be the one I want and the var I am using is `$lidarr_trackfile_path`
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-Lidarr#1741
No description provided.