beeldengeluid / peertube-plugin-creative-commons Goto Github PK
View Code? Open in Web Editor NEWCC licenses plugin for PeerTube
Home Page: https://beeldengeluid.github.io/extending-peertube/
License: GNU Affero General Public License v3.0
CC licenses plugin for PeerTube
Home Page: https://beeldengeluid.github.io/extending-peertube/
License: GNU Affero General Public License v3.0
Although the plugin uses this default new list for the textual representation of the licenses, we could register them as plugin setting, so admin users can change it through the plugin settings interface.
https://docs.joinpeertube.org/contribute-plugins?id=settings
CC BY 4.0
CC BY-SA 4.0
CC BY-ND 4.0
CC BY-NC 4.0
CC BY-NC-SA 4.0
CC BY-NC-ND 4.0
CC0 1.0
Public Domain Mark 1.0
For uploading CC licensed content which isn't licensed by the PeerTube user the attribution name and url (license holder) it should be possible to input this as part of the video metadata. Currently attribution is only given to the PeerTube uploader with an attribution url to the PeerTube user account page.
Due to a change in the plugins API for the upcoming 3.4 release, the deleteLicence and addLicence need to be updated. A new release needs to be pushed to NPM with 3.4 or higher in package.json for engine.peertube
https://github.com/Chocobozzz/PeerTube/releases/tag/v3.4.0-rc.1
https://github.com/beeldengeluid/peertube-plugin-creative-commons/blob/master/main.js
https://github.com/beeldengeluid/peertube-plugin-creative-commons/blob/master/package.json
Add the linked CC buttons/badges from licensebuttons.net to the plugin with the use of staticDirs
:
https://docs.joinpeertube.org/contribute-plugins?id=static-files
https://framagit.org/framasoft/peertube/official-plugins/-/tree/master/peertube-plugin-hello-world
Inserting elements on action:video-watch.video.loaded gets duplicated when clicking on a recommended video on the watch page
This new "hello world" plugin example from PeerTube shows how to inject/adapt HTML nodes, but it's unclear what the best way is to clear the element to prevent duplication or implement replacement of the node content. Is there a clean way to clear this injected element with another action?
https://docs.joinpeertube.org/contribute-plugins?id=html-placeholder-elements
Inserting elements in HTML nodes that don't have an id attribute isn't very robust. Using a class selector works, but sometimes (on first load of watch page) it can't find the node by class (not there yet?)
Is there anything that we are missing when selecting the node with the class 'video-info-date-views'? Does it really need filter:internal.video-watch.player.build-options.result to work?
@Chocobozzz Could you please have a quick look at our code in master and give some pointers on possibly obvious things we are missing with these issues?
Hi,
As mentionned in the Add the Free Art License post on ideas.joinpeertube.org, in some case, more options would be usefull.
I work for a public organization affiliated to the French Ministry of Education.
Some of ours videos use CC licence, when others use custom licence.
What I suggest : add an additional option to the CC licence plugin, called "custom licence", which is customizable in the preference page of the plugin.
CC BY 4.0
CC BY-SA 4.0
CC BY-ND 4.0
CC BY-NC 4.0
CC BY-NC-SA 4.0
CC BY-NC-ND 4.0
CC0 1.0
Public Domain Mark 1.0
Free Art License
Custom licence
This "custom licence" would be a text field, where the admin of the instance could specify a text, and an url (optionnal).
In my case (public education organization), we would put "Conditions générales de vente et d'utilisation" which would redirect the user to https://www.reseau-canope.fr/conditions-generales-de-vente-et-dutilisation.html
Thanks to think about it, for our public needs, and maybe other one. Best regards.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.