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/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')))) 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 = (