From ed2395d08e31d2d3cf0720aff393afffbc006d34 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sun, 20 Oct 2019 02:22:33 +1100 Subject: [PATCH] cutter: Fix typo that prevented backends from being configured --- cutter/cutter/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cutter/cutter/main.py b/cutter/cutter/main.py index 7a38379..46d9c31 100644 --- a/cutter/cutter/main.py +++ b/cutter/cutter/main.py @@ -618,12 +618,12 @@ def main( backend_type = backend_config.pop('type') no_transcode_check = backend_config.pop('no_transcode_check', False) cut_type = backend_config.pop('cut_type', 'fast') - if type == 'youtube': + if backend_type == 'youtube': backend_type = Youtube - elif type == 'local': + elif backend_type == 'local': backend_type = Local else: - raise ValueError("Unknown upload backend type: {!r}".format(type)) + raise ValueError("Unknown upload backend type: {!r}".format(backend_type)) backend = backend_type(credentials, **backend_config) if cut_type == 'fast': # mark for fast cut by clearing encoding settings