2023-10-08 12:06:24 +01:00
|
|
|
from django.core.management.base import BaseCommand
|
2023-10-28 15:03:35 +02:00
|
|
|
|
2025-11-14 12:17:31 +01:00
|
|
|
from ...render import generate_clips
|
2024-12-04 09:16:24 +00:00
|
|
|
|
2023-10-28 15:03:35 +02:00
|
|
|
|
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):
|
2025-11-14 12:17:31 +01:00
|
|
|
return generate_clips(options)
|