duration not needed for subtitle updates

This commit is contained in:
j 2024-04-02 11:30:46 +02:00
parent 8268166b77
commit f8bb75cd5b
2 changed files with 0 additions and 2 deletions

View file

@ -13,7 +13,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('--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')
parser.add_argument('--lang', action='store', dest='lang', default=None, help='subtitle language')

View file

@ -606,7 +606,6 @@ def update_subtitles(options):
import item.models
prefix = Path(options['prefix'])
duration = int(options['duration'])
base = int(options['offset'])
lang = options["lang"]
if lang and "," in lang: