mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-03 09:29:16 +02:00
correction to be more pep8 compliant (mostly typo)
This commit is contained in:
parent
7c12bcbc31
commit
5d68cc79f7
5 changed files with 79 additions and 56 deletions
|
@ -52,7 +52,6 @@ def upload_video(oauth, config, options):
|
|||
|
||||
path = options.get('--file')
|
||||
url = config.get('peertube', 'peertube_url')
|
||||
tags = None
|
||||
|
||||
# We need to transform fields into tuple to deal with tags as
|
||||
# MultipartEncoder does not support list refer
|
||||
|
@ -77,7 +76,7 @@ def upload_video(oauth, config, options):
|
|||
if options.get('--category'):
|
||||
fields.append(("category", str(utils.getCategory(options.get('--category'), 'peertube'))))
|
||||
else:
|
||||
#if no category, set default to 2 (Films)
|
||||
# if no category, set default to 2 (Films)
|
||||
fields.append(("category", "2"))
|
||||
|
||||
if options.get('--privacy'):
|
||||
|
@ -120,4 +119,4 @@ def run(options):
|
|||
if hasattr(e, 'message'):
|
||||
print("Error: " + e.message)
|
||||
else:
|
||||
print("Error: " + e)
|
||||
print("Error: " + str(e))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue