From 93ec74f1c738bc5b8a93bdf5e35c5d8c35161ca5 Mon Sep 17 00:00:00 2001 From: Labrys of Knossos Date: Mon, 31 Dec 2018 12:28:15 -0500 Subject: [PATCH] Fix conditional assignment --- core/transcoder.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/transcoder.py b/core/transcoder.py index 38973a33..e2bfb33d 100644 --- a/core/transcoder.py +++ b/core/transcoder.py @@ -80,10 +80,7 @@ def get_video_details(videofile, img=None, bitbucket=None): file = videofile if not core.FFPROBE: return video_details, result - if 'avprobe' in core.FFPROBE: - print_format = '-of' - else: - print_format = '-print_format' + print_format = '-of' if 'avprobe' in core.FFPROBE else '-print_format' try: if img: videofile = '-'