Refactored media module to generalize avatar and poster storage into photo storage.

This commit is contained in:
2019-12-13 03:28:52 +01:00
parent 20011a74e8
commit 77307d2d13
7 changed files with 183 additions and 142 deletions

View File

@@ -5,6 +5,11 @@ const yargs = require('yargs');
const { argv } = yargs
.command('npm start')
.option('server', {
describe: 'Start web server',
type: 'boolean',
alias: 'web',
})
.option('scrape', {
describe: 'Scrape sites and networks defined in configuration',
type: 'boolean',
@@ -24,6 +29,16 @@ const { argv } = yargs
type: 'array',
alias: 'actor',
})
.option('scene', {
describe: 'Scrape scene info from URL',
type: 'array',
alias: 'release',
})
.option('movie', {
describe: 'Scrape movie info from URL',
type: 'array',
alias: 'dvd',
})
.option('sources', {
describe: 'Use these scrapers for actor data',
type: 'array',
@@ -39,11 +54,6 @@ const { argv } = yargs
type: 'boolean',
alias: 'force',
})
.option('url', {
describe: 'Scrape scene info from URL',
type: 'array',
alias: 'fetch',
})
.option('after', {
describe: 'Don\'t fetch scenes older than',
type: 'string',