From 8e327377767e29e73a6d649457e352c928aad7d7 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 17 May 2024 12:08:29 +0200 Subject: [PATCH] option to disable empty clips --- pandora/item/models.py | 2 ++ pandora/settings.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index f6d992c0..be7f3303 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -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 diff --git a/pandora/settings.py b/pandora/settings.py index f47379e5..7268c31c 100644 --- a/pandora/settings.py +++ b/pandora/settings.py @@ -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 = []