addSeries method
Future<SonarrSeries>
addSeries({
- required int tvdbId,
- required int qualityProfileId,
- required String title,
- required List<
SonarrSeriesImage> images, - required List<
SonarrSeriesSeason> seasons, - required SonarrSeriesType seriesType,
- required int languageProfileId,
- required String rootFolderPath,
- SonarrMonitorType monitorMode = SonarrMonitorType.FUTURE,
- bool seasonFolder = true,
- bool monitored = true,
- bool searchForCutoffUnmetEpisodes = false,
- bool searchForMissingEpisodes = false,
Handler for series.
Adds a new series to your collection.
Required Parameters:
tvdbId: TVDB identifier for the seriesprofileId: Quality profile identifierlanguageProfileId: Language profile identifier (if using Sonarr v2, pass null)title: Title of the seriestitleSlug: Title slug of the seriesimages: List of SonarrSeriesImage objects containing the image informationseasons: List of SonarrSeriesSeason objects containing the season informationpath: Full path to where the series is located ORrootFolderPath: Path to the root folder, where the folder will be created as the titleseriesType: The type of the series (anime, standard, or daily)
Optional Parameters:
tvRageId: TVRage identifier for the seriesseasonFolder: Should this series use season folders?monitored: Should this series be monitored?ignoreEpisodesWithFiles: If true, automatically ignore episodes that already have episodessearchForCutoffUnmetEpisodes: If true, automatically ignore episodes that do not have episodessearchForMissingEpisodes: If true, start searching for all missing episodes after adding
Implementation
Future<SonarrSeries> addSeries({
required int tvdbId,
required int qualityProfileId,
required String title,
required List<SonarrSeriesImage> images,
required List<SonarrSeriesSeason> seasons,
required SonarrSeriesType seriesType,
required int languageProfileId,
required String rootFolderPath,
SonarrMonitorType monitorMode = SonarrMonitorType.FUTURE,
bool seasonFolder = true,
bool monitored = true,
bool searchForCutoffUnmetEpisodes = false,
bool searchForMissingEpisodes = false,
}) async => _commandAddSeries(
_client,
tvdbId: tvdbId,
qualityProfileId: qualityProfileId,
languageProfileId: languageProfileId,
title: title,
images: images,
seasons: seasons,
rootFolderPath: rootFolderPath,
seasonFolder: seasonFolder,
monitored: monitored,
seriesType: seriesType,
monitorMode: monitorMode.value,
searchForCutoffUnmetEpisodes: searchForCutoffUnmetEpisodes,
searchForMissingEpisodes: searchForMissingEpisodes,
);