Un add-on di Kodi per guardare contenuti ospitati su PeerTube. Riprodurre video (compresi i video in diretta)
Sfoglia i video su un'istanza
Cercare i video su un'istanza
Selezionare l'istanza di PeerTube da utilizzare
https://peertube.uno
4f8af35035
Now the type of a video is defined when trying to play a video so that live streams (.m3u8) are directly played by Kodi (no download required). We are able to know if a video is live from the response of the "list" REST API but it was decided to ignore this information in order to have a single action to play video (whether it is live or not). The goal was to keep the API of the add-on as simple as possible so that externel users only have to call the add-on's API with the ID of a video, without having to add the type of the video. The information about the type of the video will anyway be available in the response used to get the URL of a video so this solution does not impact the performance. |
||
---|---|---|
misc | ||
resources | ||
.gitignore | ||
.gitlab-ci.yml | ||
LICENSE.txt | ||
README.md | ||
addon.xml | ||
contributing.md | ||
icon.png | ||
main.py | ||
service.py |
README.md
A Kodi add-on for watching content hosted on PeerTube.
This add-on is under development so only basic features work, and you're
welcome to improve it.
If you want to contribute, please start with the
contribution guidelines and the
pending issues.
[[TOC]]
Features
- Play videos (including live videos)
- Browse the videos on a PeerTube instance
- Search for videos on a PeerTube instance
- Select the PeerTube instance to use
- Select the preferred video resolution: the plugin will try to play the
preferred video resolution.
If it's not available, it will play the lower resolution that is the closest to your preference.
If not available, it will play the higher resolution that is the closest from your preference.
User settings
- Preferred PeerTube instance
- Preferred video resolution
- Number of items to display per page
- Value used to sort items when listing/searching videos:
views
: sort by number of views (ascending only)likes
: sort by number of likes (ascending only)
- Select the filter to use when browsing the videos on an instance:
- local will only display the videos which are local to the selected instance
- all-local will only display the videos which are local to the selected instance plus the private and unlisted videos (requires admin privileges)
API
This add-on can be called from other add-ons in Kodi to play videos thanks to the following API:
plugin://plugin.video.peertube/?action=play_video&instance=<instance>&id=<id>
where:
<instance>
is the base URL of the instance hosting the video<id>
is the ID or the UUID of the video on the instance server
For instance to play the video behind the URL
https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d
call
the add-on with:
plugin://plugin.video.peertube/?action=play_video&instance=framatube.org&id=9c9de5e8-0a1e-484a-b099-e80766180a6d
Limitations
- This add-on doesn't support Webtorrent yet. So, it cannot download/share from/to regular PeerTube clients.
- The add-on doesn't delete the downloaded files at the moment so it may fill
up your disk. You may delete manually the downloaded files in the folder
<kodi_home>/temp/plugin.video.peertube/
(more information on<kodi_home>
here).
Installation and prerequisites
Please read the wiki for more information.