Skip to content

Conversation

@nuxencs
Copy link
Contributor

@nuxencs nuxencs commented Jun 7, 2025

This adds support for all the Starr apps:
https://sonarr.tv/docs/api/#/RenameEpisode/get_api_v3_rename
https://radarr.video/docs/api/#/RenameMovie/get_api_v3_rename
https://lidarr.audio/docs/api/#/RenameTrack/get_api_v1_rename
https://readarr.com/docs/api/#/RenameBook/get_api_v1_rename

Already tested and confirmed working with Sonarr and Radarr, but not with Lidarr and Readarr as I don't have instances to test.

// be renamed to follow the naming format. If albumID is set to -1, it will check all albums at once.
func (l *Lidarr) GetRenameContext(ctx context.Context, artistID int64, albumID int64) ([]*Rename, error) {
params := make(url.Values)
params.Set("artistId", starr.Str(artistID))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend running golangci-lint on this contribution.

@davidnewhall davidnewhall merged commit 96ae7c4 into golift:main Jun 9, 2025
10 checks passed
@nuxencs nuxencs deleted the feat/add-rename-endpoint branch June 9, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants