forked from DebaucheryLibrarian/traxxx
34 lines
923 B
JavaScript
34 lines
923 B
JavaScript
'use strict';
|
|
|
|
function include(argv) {
|
|
const options = {
|
|
includeCovers: argv.media && argv.covers,
|
|
includeMedia: argv.media,
|
|
includePhotos: argv.media && argv.photos,
|
|
includeVideos: argv.media && argv.videos,
|
|
includePosters: argv.media && argv.posters,
|
|
includeTeasers: argv.media && argv.videos && argv.teasers,
|
|
includeTrailers: argv.media && argv.videos && argv.trailers,
|
|
includeActorScenes: argv.actorsScenes,
|
|
};
|
|
|
|
return {
|
|
...options,
|
|
// legacy
|
|
covers: options.includeCovers,
|
|
media: options.includeMedia,
|
|
photos: options.includePhotos,
|
|
videos: options.includeVideos,
|
|
poster: options.includePosters,
|
|
posters: options.includePosters,
|
|
teaser: options.includeTeasers,
|
|
teasers: options.includeTeasers,
|
|
trailer: options.includeTrailers,
|
|
trailers: options.includeTrailers,
|
|
releases: options.includeActorScenes,
|
|
scenes: options.includeActorScenes,
|
|
};
|
|
}
|
|
|
|
module.exports = include;
|