peertube-plugin-categories
v1.2.8
Published
Manage video categories.
Readme
Categories management plugin
A PeerTube plugin to manage video categories.
Development
- Install and start a PeerTube dev instance following this guide: https://docs.joinpeertube.org/contribute-plugins?id=test-your-plugintheme
In dev mode, administrator username is root and password is test.
- Install the plugin from your PeerTube directory:
node ./dist/server/tools/peertube.js plugins install --path ~/workspace/peertube/peertube-plugin-categoriesYou may look at the plugin categories configuration there: http://localhost:9000/plugins/categories/router/enhanced-categories
This URL is used to update the categories table on the settings page.
You may check which categories will actually be exposed in your instance: http://localhost:9000/api/v1/videos/categories
Deployment
Force plugin update
set the latest available plugin version to the last version number:
update "plugin" set "latestVersion" = 'X.X.X' where "plugin"."name" = 'categories';Refresh plugins page and update the plugin.
Common pitfalls
You must re-install the plugin to test each updates.
If your client code doesn't seem to update, visit the following URL and clear your browser cache by hitting
Ctrl+F5. http://localhost:9000/plugins/categories/1.1.0/client-scripts/src/client/admin-plugin-settings.js
Resources
- https://docs.joinpeertube.org/contribute-plugins
- https://framagit.org/framasoft/peertube/official-plugins/-/blob/master/peertube-plugin-hello-world/main.js
About
Initial codebase developed with the financial support of the Direction du Numérique pour l'Éducation (DNE) for the ministry of Éducation nationale et de la Jeunesse (french ministry of education) in the context of the apps.education.fr initiative.
