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.
30 lines
592 B
30 lines
592 B
|
|
function getNewAuthor(author, payload) {
|
|
const {
|
|
rootFolderPath,
|
|
monitor,
|
|
monitorNewItems,
|
|
qualityProfileId,
|
|
metadataProfileId,
|
|
tags,
|
|
searchForMissingBooks = false
|
|
} = payload;
|
|
|
|
const addOptions = {
|
|
monitor,
|
|
searchForMissingBooks
|
|
};
|
|
|
|
author.addOptions = addOptions;
|
|
author.monitored = true;
|
|
author.monitorNewItems = monitorNewItems;
|
|
author.qualityProfileId = qualityProfileId;
|
|
author.metadataProfileId = metadataProfileId;
|
|
author.rootFolderPath = rootFolderPath;
|
|
author.tags = tags;
|
|
|
|
return author;
|
|
}
|
|
|
|
export default getNewAuthor;
|