mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
30 lines
577 B
JavaScript
30 lines
577 B
JavaScript
|
|
function getNewAuthor(author, payload) {
|
|
const {
|
|
rootFolderPath,
|
|
monitor,
|
|
qualityProfileId,
|
|
metadataProfileId,
|
|
authorType,
|
|
tags,
|
|
searchForMissingBooks = false
|
|
} = payload;
|
|
|
|
const addOptions = {
|
|
monitor,
|
|
searchForMissingBooks
|
|
};
|
|
|
|
author.addOptions = addOptions;
|
|
author.monitored = true;
|
|
author.qualityProfileId = qualityProfileId;
|
|
author.metadataProfileId = metadataProfileId;
|
|
author.rootFolderPath = rootFolderPath;
|
|
author.authorType = authorType;
|
|
author.tags = tags;
|
|
|
|
return author;
|
|
}
|
|
|
|
export default getNewAuthor;
|