New Categories?

Hi,
I’m new with a peertube instance for churches. Therefore I miss in the list of categories something like « religion » or similar.
Are the categories from a central plattform (and how to suggest new ones) or can I change them in my instance?
I found nothing in the docs.

Thanks
Gerhard

Adding categories is supported via the Plugin API: https://docs.joinpeertube.org/#/api-plugins?id=video-categories-manager-api

1 Like

My Webmaster found an easy solution:
edit
peertube-latest/dist/server/initializers/constants.js
and add in row 362-381 the categories needed e.g.
const VIDEO_CATEGORIES = { 1: 'Music', 2: 'Films', 3: 'Vehicles', 4: 'Art', 5: 'Sports', 6: 'Travels', 7: 'Gaming', 8: 'People', 9: 'Comedy', 10: 'Entertainment', 11: 'News & Politics', 12: 'How To', 13: 'Education', 14: 'Activism', 15: 'Science & Technology', 16: 'Animals', 17: 'Kids', 18: 'Food', 19: 'Gottesdienste', 20: 'Gemeinde' }

That solution has the disadvantage of pre-empting numbers that we might one day add as other categories. I recommend that you assign random integers of high value instead of strictly following ones.

1 Like

Thanks, I’ll tell him

The problem with this solution is that you will have to do this modification at every peertube’s update.

1 Like