use default options instead of passing all over the place
This commit is contained in:
parent
ce51e8c2c4
commit
2a5d741ccf
3 changed files with 14 additions and 3 deletions
|
|
@ -7,9 +7,7 @@ class Command(BaseCommand):
|
|||
help = 'generate symlinks to clips and clips.json'
|
||||
|
||||
def add_arguments(self, parser):
|
||||
parser.add_argument('--lang', action='store', dest='lang', default=None, help='subtitle language')
|
||||
parser.add_argument('--prefix', action='store', dest='prefix', default="/srv/t_for_time", help='prefix to build clips in')
|
||||
parser.add_argument('--censored', action='store', dest='censored', default=None, help='censor items from list')
|
||||
|
||||
def handle(self, **options):
|
||||
return generate_clips(options)
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ class Command(BaseCommand):
|
|||
def add_arguments(self, parser):
|
||||
parser.add_argument('--prefix', action='store', dest='prefix', default="/srv/t_for_time", help='prefix to build clips in')
|
||||
parser.add_argument('--offset', action='store', dest='offset', default="1024", help='inital offset in pi')
|
||||
parser.add_argument('--lang', action='store', dest='lang', default=None, help='subtitle language')
|
||||
|
||||
def handle(self, **options):
|
||||
update_subtitles(options)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue