mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-05 10:19:23 +02:00
Fix bug #42 , crash on Peertube when there is only one tag in video
This commit is contained in:
parent
1fc0577ce7
commit
5dc6c78211
1 changed files with 2 additions and 2 deletions
|
@ -202,9 +202,9 @@ def upload_video(oauth, secret, options):
|
|||
continue
|
||||
# Tag more than 30 chars crashes Peertube, so exit and check tags
|
||||
if len(strtag) >= 30:
|
||||
logging.warning("Peertube: Sorry, Peertube does not support tag with more than 30 characters, please reduce your tag size")
|
||||
logging.warning("Peertube: Sorry, Peertube does not support tag with more than 30 characters, please reduce tag: " + strtag)
|
||||
exit(1)
|
||||
fields.append(("tags", strtag))
|
||||
fields.append(("tags[]", strtag))
|
||||
|
||||
if options.get('--category'):
|
||||
fields.append(("category", str(utils.getCategory(options.get('--category'), 'peertube'))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue