forked from 0x2620/pandora
option to disable empty clips
This commit is contained in:
parent
3b56274713
commit
8e32737776
2 changed files with 4 additions and 0 deletions
|
@ -1559,6 +1559,8 @@ class Item(models.Model):
|
|||
return icon
|
||||
|
||||
def add_empty_clips(self):
|
||||
if not settings.EMPTY_CLIPS:
|
||||
return
|
||||
subtitles = utils.get_by_key(settings.CONFIG['layers'], 'isSubtitles', True)
|
||||
if not subtitles:
|
||||
return
|
||||
|
|
|
@ -289,6 +289,8 @@ SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
|||
|
||||
DATA_UPLOAD_MAX_MEMORY_SIZE = 32 * 1024 * 1024
|
||||
|
||||
EMPTY_CLIPS = True
|
||||
|
||||
#you can ignore things below this line
|
||||
#=========================================================================
|
||||
LOCAL_APPS = []
|
||||
|
|
Loading…
Reference in a new issue