From 5dc6c782117c3d04e5098a5cd00191ee3de2a51b Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Sun, 10 Nov 2019 12:48:42 +0100 Subject: [PATCH] Fix bug #42 , crash on Peertube when there is only one tag in video --- lib/pt_upload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pt_upload.py b/lib/pt_upload.py index 594bd6c..35562b9 100644 --- a/lib/pt_upload.py +++ b/lib/pt_upload.py @@ -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'))))