From 5dc6c782117c3d04e5098a5cd00191ee3de2a51b Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Sun, 10 Nov 2019 12:48:42 +0100 Subject: [PATCH 1/2] 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')))) From e5c8c4c9b905d0fa22296a657bcd3f04f3530d3c Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Sun, 10 Nov 2019 12:49:47 +0100 Subject: [PATCH 2/2] Release hotfix v0.7.1 --- CHANGELOG.md | 5 +++++ prismedia_upload.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a2f594..b3a3c5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## v0.7.1 + +### Fixes +Fix bug #42 , crash on Peertube when video has only one tag + ## v0.7.0 ### Features diff --git a/prismedia_upload.py b/prismedia_upload.py index 71519dc..ada156d 100755 --- a/prismedia_upload.py +++ b/prismedia_upload.py @@ -97,7 +97,7 @@ except ImportError: 'see https://github.com/ahupp/python-magic\n') exit(1) -VERSION = "prismedia v0.7.0" +VERSION = "prismedia v0.7.1" VALID_PRIVACY_STATUSES = ('public', 'private', 'unlisted') VALID_CATEGORIES = (