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
4346178db9
Libtorrent is required to play videos but its installation is still manual so now a message is displayed when libtorrent could not be imported instead of having a "service could not start" error at Kodi startup. The message contains a link to a page which explains how to install libtorrent. It will be displayed when: * the add-on starts * the user selects a video to play (including when called externally) Other additions: * Create a kodi_utils module to centralize some calls to the Kodi API * Add license information in the header of the files * Ignore some files in Git (python cache and Mac OS system file) |
||
---|---|---|
resources | ||
.gitignore | ||
LICENSE.txt | ||
README.md | ||
TESTME.md | ||
addon.xml | ||
createaddon.sh | ||
fanart.jpg | ||
icon.png | ||
peertube.py | ||
service.py |
README.md
A Kodi add-on for watching content hosted on Peertube.
This code is still proof-of-concept but it works, and you're welcome to improve it.
Features
- Browse all videos on a PeerTube instance
- Search for videos on a PeerTube instance
- Select Peertube instance to use (Doesn't work yet)
- Select the preferred video resolution: the plugin will try to play the select video resolution. If it's not available, it will play the lower resolution that is the closest from 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 videos to display per page
- Sort method to be used when listing videos (Currently, only 'views' and 'likes')
- 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 reason is that it uses the libtorrent python library which doesn't support it yet (see https://github.com/arvidn/libtorrent/issues/223)
- The add-on doesn't delete the downloaded files at the moment. So, it may fill up your disk.
Requirements
- Kodi 17 (Krypton) or above
- libtorrent python bindings must be installed on
your machine (on Debian type
apt install python-libtorrent
as root).