Skip to content

Discussion about Sonarr v4 and Radarr v6 API. #241

@MythodeaLoL

Description

@MythodeaLoL

For future discussion of compatibility, due to recent changes in the Sonarr and Radarr APIs.

Some commands need to be reviewed and tested in practice to ensure functionality.

RescanSeries: Searches the disk for files, informing Sonarr what exists or not. We use it to check in Sonarr if a series is complete or has missing episodes.

SeriesSearch: Used to search for and download missing episodes, or those that meet the Custom Format (CF) requirements, such as upgrades or downloads of missing episodes.

Perhaps implementing SeriesSearch would bring more benefits, since it performs a global search across the entire series for all episodes, useful after a refresh.

// Trigger rescan for the series
_, _ = client.SendCommandContext(ctx, &sonarr.CommandRequest{
Name: "RescanSeries",
SeriesID: targetSeries.ID,
})
}
}
if len(episodeIDs) == 0 {
return fmt.Errorf("no episodes found for file: %s: %w", filePath, model.ErrPathMatchFailed)
}
// Trigger episode search for all episodes in this file
searchCmd := &sonarr.CommandRequest{
Name: "EpisodeSearch",
EpisodeIDs: episodeIDs,
}

Other requirements will be added progressively if necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions