cutter: Fix typo that prevented backends from being configured

pull/114/head
Mike Lang 5 years ago
parent bf55b1c75e
commit ed2395d08e

@ -618,12 +618,12 @@ def main(
backend_type = backend_config.pop('type') backend_type = backend_config.pop('type')
no_transcode_check = backend_config.pop('no_transcode_check', False) no_transcode_check = backend_config.pop('no_transcode_check', False)
cut_type = backend_config.pop('cut_type', 'fast') cut_type = backend_config.pop('cut_type', 'fast')
if type == 'youtube': if backend_type == 'youtube':
backend_type = Youtube backend_type = Youtube
elif type == 'local': elif backend_type == 'local':
backend_type = Local backend_type = Local
else: 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) backend = backend_type(credentials, **backend_config)
if cut_type == 'fast': if cut_type == 'fast':
# mark for fast cut by clearing encoding settings # mark for fast cut by clearing encoding settings

Loading…
Cancel
Save