update subtitles
This commit is contained in:
parent
798efa43a8
commit
5103e8f81b
2 changed files with 83 additions and 7 deletions
20
management/commands/update_subtitles.py
Normal file
20
management/commands/update_subtitles.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import json
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.conf import settings
|
||||
|
||||
from ...render import update_subtitles
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'genrate kdenlive porject and render'
|
||||
|
||||
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('--duration', action='store', dest='duration', default="3600", help='target duration of all fragments in seconds')
|
||||
parser.add_argument('--offset', action='store', dest='offset', default="1024", help='inital offset in pi')
|
||||
|
||||
def handle(self, **options):
|
||||
update_subtitles(options)
|
||||
Loading…
Add table
Add a link
Reference in a new issue