I am setting up an instance of peertube that will be part of my offline testbed. Part of what that requires is for me to create user accounts for thousands of users and make it look as though they have each uploaded many videos at some point.
I was delighted to see that there is a python implementation of the API and I’ve made it to the point of creating user accounts automatically through it. When I try to upload videos I’ve been unable to figure out what the right value I should be passing to api_instance.videos_upload_post
. I don’t really care what value is there, so I’ve tried passing None, and empty list, a list with a string in it (it says I need at least 2), a list with 2 strings, a dict mapping strings to ints, and they all get rejected with the message
HTTP response body: {"errors":{"tags":{"value":"skaion,0","msg":"Should have correct tags","param":"tags","location":"body"}}}
where the skaion,0
part changes depending on what I’m trying to put in the tags field.
What value should work for it and/or how can I find suitable values to pass?
I’ve managed to address all the other issues that call was raising, but I’m stumped how to get by this one.
I could try to use the tool peertube-upload.js
but since I’m going to be doing hundreds of thousands of videos I’m hoping to avoid having to spawn a new process for each.