Browse Source

Fix bug #42 , crash on Peertube when there is only one tag in video

LecygneNoir 1 month ago
parent
commit
5dc6c78211
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/pt_upload.py

+ 2
- 2
lib/pt_upload.py View File

@@ -202,9 +202,9 @@ def upload_video(oauth, secret, options):
202 202
                 continue
203 203
             # Tag more than 30 chars crashes Peertube, so exit and check tags
204 204
             if len(strtag) >= 30:
205
-                logging.warning("Peertube: Sorry, Peertube does not support tag with more than 30 characters, please reduce your tag size")
205
+                logging.warning("Peertube: Sorry, Peertube does not support tag with more than 30 characters, please reduce tag: " + strtag)
206 206
                 exit(1)
207
-            fields.append(("tags", strtag))
207
+            fields.append(("tags[]", strtag))
208 208
 
209 209
     if options.get('--category'):
210 210
         fields.append(("category", str(utils.getCategory(options.get('--category'), 'peertube'))))

Loading…
Cancel
Save