2017-09-04 02:20:56 +00:00
|
|
|
import getMonitoringOptions from 'Utilities/Series/getMonitoringOptions';
|
|
|
|
|
|
|
|
function getNewSeries(series, payload) {
|
|
|
|
const {
|
|
|
|
rootFolderPath,
|
|
|
|
monitor,
|
|
|
|
qualityProfileId,
|
|
|
|
languageProfileId,
|
2017-09-29 03:03:13 +00:00
|
|
|
artistType,
|
2017-09-04 02:20:56 +00:00
|
|
|
albumFolder,
|
2017-10-07 04:13:00 +00:00
|
|
|
primaryAlbumTypes,
|
|
|
|
secondaryAlbumTypes,
|
2017-09-04 02:20:56 +00:00
|
|
|
tags,
|
2017-09-08 03:09:52 +00:00
|
|
|
searchForMissingAlbums = false
|
2017-09-04 02:20:56 +00:00
|
|
|
} = payload;
|
|
|
|
|
2017-09-08 03:09:52 +00:00
|
|
|
// const {
|
|
|
|
// seasons,
|
|
|
|
// options: addOptions
|
|
|
|
// } = getMonitoringOptions(series.seasons, monitor);
|
2017-09-04 02:20:56 +00:00
|
|
|
|
2017-09-08 03:09:52 +00:00
|
|
|
// addOptions.searchForMissingAlbums = searchForMissingAlbums;
|
|
|
|
// series.addOptions = addOptions;
|
|
|
|
// series.seasons = seasons;
|
2017-09-04 02:20:56 +00:00
|
|
|
series.monitored = true;
|
|
|
|
series.qualityProfileId = qualityProfileId;
|
|
|
|
series.languageProfileId = languageProfileId;
|
|
|
|
series.rootFolderPath = rootFolderPath;
|
2017-09-29 03:03:13 +00:00
|
|
|
series.artistType = artistType;
|
2017-09-04 02:20:56 +00:00
|
|
|
series.albumFolder = albumFolder;
|
2017-10-07 04:13:00 +00:00
|
|
|
series.primaryAlbumTypes = primaryAlbumTypes;
|
|
|
|
series.secondaryAlbumTypes = secondaryAlbumTypes;
|
2017-09-04 02:20:56 +00:00
|
|
|
series.tags = tags;
|
|
|
|
|
|
|
|
return series;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default getNewSeries;
|