You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
997 B
39 lines
997 B
import getMonitoringOptions from 'Utilities/Series/getMonitoringOptions';
|
|
|
|
function getNewSeries(series, payload) {
|
|
const {
|
|
rootFolderPath,
|
|
monitor,
|
|
qualityProfileId,
|
|
languageProfileId,
|
|
artistType,
|
|
albumFolder,
|
|
primaryAlbumTypes,
|
|
secondaryAlbumTypes,
|
|
tags,
|
|
searchForMissingAlbums = false
|
|
} = payload;
|
|
|
|
// const {
|
|
// seasons,
|
|
// options: addOptions
|
|
// } = getMonitoringOptions(series.seasons, monitor);
|
|
|
|
// addOptions.searchForMissingAlbums = searchForMissingAlbums;
|
|
// series.addOptions = addOptions;
|
|
// series.seasons = seasons;
|
|
series.monitored = true;
|
|
series.qualityProfileId = qualityProfileId;
|
|
series.languageProfileId = languageProfileId;
|
|
series.rootFolderPath = rootFolderPath;
|
|
series.artistType = artistType;
|
|
series.albumFolder = albumFolder;
|
|
series.primaryAlbumTypes = primaryAlbumTypes;
|
|
series.secondaryAlbumTypes = secondaryAlbumTypes;
|
|
series.tags = tags;
|
|
|
|
return series;
|
|
}
|
|
|
|
export default getNewSeries;
|