From a160b2e409b88fa5d3ca80b101d6f21bac56f862 Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Sun, 5 Aug 2018 11:28:22 +0200 Subject: [PATCH] Use thumbnail as preview for peertube, fix #7 --- lib/pt_upload.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pt_upload.py b/lib/pt_upload.py index 650aa78..4b49f27 100644 --- a/lib/pt_upload.py +++ b/lib/pt_upload.py @@ -106,6 +106,7 @@ def upload_video(oauth, secret, options): if options.get('--thumbnail'): fields.append(("thumbnailfile", get_file(options.get('--thumbnail')))) + fields.append(("previewfile", get_file(options.get('--thumbnail')))) multipart_data = MultipartEncoder(fields)