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.
28 lines
523 B
28 lines
523 B
|
|
function getNewMovie(movie, payload) {
|
|
const {
|
|
rootFolderPath,
|
|
monitor,
|
|
qualityProfileId,
|
|
minimumAvailability,
|
|
tags,
|
|
searchForMovie = false
|
|
} = payload;
|
|
|
|
const addOptions = {
|
|
monitor,
|
|
searchForMovie
|
|
};
|
|
|
|
movie.addOptions = addOptions;
|
|
movie.monitored = monitor !== 'none';
|
|
movie.qualityProfileId = qualityProfileId;
|
|
movie.minimumAvailability = minimumAvailability;
|
|
movie.rootFolderPath = rootFolderPath;
|
|
movie.tags = tags;
|
|
|
|
return movie;
|
|
}
|
|
|
|
export default getNewMovie;
|