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
Go to file
Thomas d657480eab Browse only local videos by default
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
2021-03-28 21:27:28 +00:00
resources Browse only local videos by default 2021-03-28 21:27:28 +00:00
LICENSE.txt Initial commit. 2018-07-26 11:33:47 +02:00
README.md Updated README.md to match latest development. 2018-09-19 09:22:30 +02:00
TESTME.md Add TESTME.md information and needed tool to create a kodi package 2018-11-23 11:50:05 +01:00
addon.xml Browse only local videos by default 2021-03-28 21:27:28 +00:00
createaddon.sh Add TESTME.md information and needed tool to create a kodi package 2018-11-23 11:50:05 +01:00
fanart.jpg Add TESTME.md information and needed tool to create a kodi package 2018-11-23 11:50:05 +01:00
icon.png icon.png was bad 2018-07-26 22:08:38 +02:00
peertube.py Browse only local videos by default 2021-03-28 21:27:28 +00:00
service.py Fixed a bug in PeertubeDownloader.run() where I was refering to variable 'torrent' 2018-07-27 17:37:48 +02:00

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.