Compare commits
No commits in common. "8e327377767e29e73a6d649457e352c928aad7d7" and "774450d263079302b91078b848387a146166e5ba" have entirely different histories.
8e32737776
...
774450d263
3 changed files with 0 additions and 9 deletions
|
@ -27,7 +27,6 @@ class Command(BaseCommand):
|
||||||
parser.add_argument('username', help='username')
|
parser.add_argument('username', help='username')
|
||||||
parser.add_argument('item', help='item')
|
parser.add_argument('item', help='item')
|
||||||
parser.add_argument('layer', help='layer')
|
parser.add_argument('layer', help='layer')
|
||||||
parser.add_argument('language', help='language', default="")
|
|
||||||
parser.add_argument('filename', help='filename.srt')
|
parser.add_argument('filename', help='filename.srt')
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
|
@ -35,7 +34,6 @@ class Command(BaseCommand):
|
||||||
public_id = options['item']
|
public_id = options['item']
|
||||||
layer_id = options['layer']
|
layer_id = options['layer']
|
||||||
filename = options['filename']
|
filename = options['filename']
|
||||||
language = options.get("language")
|
|
||||||
|
|
||||||
user = User.objects.get(username=username)
|
user = User.objects.get(username=username)
|
||||||
item = Item.objects.get(public_id=public_id)
|
item = Item.objects.get(public_id=public_id)
|
||||||
|
@ -49,9 +47,6 @@ class Command(BaseCommand):
|
||||||
for i in range(len(annotations)-1):
|
for i in range(len(annotations)-1):
|
||||||
if annotations[i]['out'] == annotations[i+1]['in']:
|
if annotations[i]['out'] == annotations[i+1]['in']:
|
||||||
annotations[i]['out'] = annotations[i]['out'] - 0.001
|
annotations[i]['out'] = annotations[i]['out'] - 0.001
|
||||||
if language:
|
|
||||||
for annotation in annotations:
|
|
||||||
annotation["value"] = '<span lang="%s">%s</span>' % (language, annotation["value"])
|
|
||||||
tasks.add_annotations.delay({
|
tasks.add_annotations.delay({
|
||||||
'item': item.public_id,
|
'item': item.public_id,
|
||||||
'layer': layer_id,
|
'layer': layer_id,
|
||||||
|
|
|
@ -1559,8 +1559,6 @@ class Item(models.Model):
|
||||||
return icon
|
return icon
|
||||||
|
|
||||||
def add_empty_clips(self):
|
def add_empty_clips(self):
|
||||||
if not settings.EMPTY_CLIPS:
|
|
||||||
return
|
|
||||||
subtitles = utils.get_by_key(settings.CONFIG['layers'], 'isSubtitles', True)
|
subtitles = utils.get_by_key(settings.CONFIG['layers'], 'isSubtitles', True)
|
||||||
if not subtitles:
|
if not subtitles:
|
||||||
return
|
return
|
||||||
|
|
|
@ -289,8 +289,6 @@ SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||||
|
|
||||||
DATA_UPLOAD_MAX_MEMORY_SIZE = 32 * 1024 * 1024
|
DATA_UPLOAD_MAX_MEMORY_SIZE = 32 * 1024 * 1024
|
||||||
|
|
||||||
EMPTY_CLIPS = True
|
|
||||||
|
|
||||||
#you can ignore things below this line
|
#you can ignore things below this line
|
||||||
#=========================================================================
|
#=========================================================================
|
||||||
LOCAL_APPS = []
|
LOCAL_APPS = []
|
||||||
|
|
Loading…
Reference in a new issue