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
d657480eab
Use "local" instead of "all-local" by default because "all-local" requires admin privileges Other improvements: * Replace urllib with requests to make the management of the HTTP requests simpler (better error handling and easier implementation of complex requests in the future) * Refactor the functions used to build the HTTP request to improve maintainability (don't know if it makes sense to keep a single function for the "search" and the "list videos" request). * Use "urlencode" to generate the Kodi URL using a dict to make it more generic. * Create a function to log messages easily in Kodi's debug log. It will decrease the amount of duplicate code. * Fix some errors reported by pylint with regards to PEP 8 |
||
---|---|---|
resources | ||
LICENSE.txt | ||
README.md | ||
TESTME.md | ||
addon.xml | ||
createaddon.sh | ||
fanart.jpg | ||
icon.png | ||
peertube.py | ||
service.py |
README.md
A kodi addon for watching content hosted on Peertube (http://joinpeertube.org/)
This code is still proof-of-concept but it works, and you're welcome to improve it.
Functionalities
- Browse all videos on a PeerTube instance
- Search for videos on a PeerTube instance (Only supported by 1.0.0-beta10+ instances)
- 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')
Limitations
- This addon doesn't support Webtorrent yet. So, it cannot download/share from/to regular PeerTube clients. The reason is that it uses the libtorrent python libray which doesn't support it yet (see https://github.com/arvidn/libtorrent/issues/223)
- The addon doesn't delete the downloaded files atm. So, it may fills up your disk
Requirements
- Kodi 17 or above
- libtorrent python bindings (https://libtorrent.org/). On Debian type
apt install python-libtorrent
as root.