pandora_t_for_time/management/commands/generate_clips.py

13 lines
417 B
Python
Raw Normal View History

2023-10-08 12:06:24 +01:00
from django.core.management.base import BaseCommand
from ...render import generate_clips
2023-10-08 12:06:24 +01:00
class Command(BaseCommand):
help = 'generate symlinks to clips and clips.json'
def add_arguments(self, parser):
2023-10-08 12:07:57 +01:00
parser.add_argument('--prefix', action='store', dest='prefix', default="/srv/t_for_time", help='prefix to build clips in')
2023-10-08 12:06:24 +01:00
def handle(self, **options):
return generate_clips(options)