From 708f3d89272e133b985763c3d17b1024a6edd5e9 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 13 Aug 2018 21:24:44 +0200 Subject: [PATCH 1/2] raise exception --- pandora/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/settings.py b/pandora/settings.py index e0c7e7ee..8a6f588b 100644 --- a/pandora/settings.py +++ b/pandora/settings.py @@ -274,7 +274,7 @@ except NameError: secret.write(SECRET_KEY) secret.close() except IOError: - Exception('Please create a %s file with random characters to generate your secret key!' % SECRET_FILE) + raise Exception('Please create a %s file with random characters to generate your secret key!' % SECRET_FILE) INSTALLED_APPS = tuple(list(INSTALLED_APPS) + LOCAL_APPS) From 40f5de20d2df5d23cd10881b3dea84ccb2a3d990 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 13 Aug 2018 21:26:24 +0200 Subject: [PATCH 2/2] disable chop, not really working yet --- pandora/archive/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index 514b29ce..f206de24 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -619,7 +619,7 @@ def chop(video, start, end, subtitles=None): fd.write(subtitles) else: subtitles_f = None - if ext == '.mp4' and settings.CHOP_SUPPORT: + if False and ext == '.mp4' and settings.CHOP_SUPPORT: Chop(video, choped_video, start, end, subtitles_f) if subtitles_f: os.unlink(subtitles_f)