create method
Future<RadarrMovie>
create({
- required RadarrMovie movie,
- required RadarrRootFolder rootFolder,
- required bool monitored,
- required RadarrAvailability minimumAvailability,
- required RadarrQualityProfile qualityProfile,
- List<
RadarrTag> ? tags, - bool searchForMovie = false,
Handler for movie.
Adds a new movie.
Required Parameters:
movie
: RadarrMovie object, usually fetched using movie lookuprootFolder
: RadarrRootFolder for the root folder to use for the moviemonitored
: Should the movie be added as monitored?minimumAvailability
: RadarrAvailability for the moviequalityProfile
: RadarrQualityProfile for the movie
Optional Parameters:
tags
: List of RadarrTags to be assigned to the moviesearchForMovie
Should a search for the movie be started after being added?
Implementation
Future<RadarrMovie> create({
required RadarrMovie movie,
required RadarrRootFolder rootFolder,
required bool monitored,
required RadarrAvailability minimumAvailability,
required RadarrQualityProfile qualityProfile,
List<RadarrTag>? tags,
bool searchForMovie = false,
}) async => _commandAddMovie(
_client,
movie: movie,
rootFolder: rootFolder,
monitored: monitored,
minimumAvailability: minimumAvailability,
qualityProfile: qualityProfile,
tags: tags,
searchForMovie: searchForMovie,
);