From d14bf5b094635c27e563d78733ddd4feb64936a2 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 8 Apr 2021 21:04:46 +0000 Subject: [PATCH] Release 0.3.2 --- README.md | 26 ++++++++++++++++---------- addon.xml | 49 ++++++++++++------------------------------------- 2 files changed, 28 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index ba93459..adbd656 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -A kodi addon for watching content hosted on Peertube (http://joinpeertube.org/) +A Kodi add-on 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 +# Features * Browse all videos on a PeerTube instance -* Search for videos on a PeerTube instance (Only supported by 1.0.0-beta10+ instances) +* 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. +* 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. @@ -16,15 +16,21 @@ If not available, it will play the higher resolution that is the closest from yo * 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') +* 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)** # 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 +* 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 fills up your disk. # Requirements -* Kodi 17 or above -* libtorrent python bindings (https://libtorrent.org/). On Debian type `apt install python-libtorrent` as root. +* Kodi 17 (Krypton) or above +* [libtorrent](https://libtorrent.org/) python bindings must be installed on + your machine (on Debian type `apt install python-libtorrent` as root). diff --git a/addon.xml b/addon.xml index 706b3a1..80722e2 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -18,45 +18,20 @@ GNU GENERAL PUBLIC LICENSE. Version 3, 29 June 2007 https://joinpeertube.org - cyrille.bollu2@gmail.com - https://github.com/StCyr/plugin.video.peertube + https://framagit.org/StCyr/plugin.video.peertube -0.3.1.1 -Add local videos only browsing -0.3.1 -Fixed some bugs -The 'change current instance" functionality currently doesn't work because -the addon exits after every screen displayed. I must persist this value on -disk. -0.3.0 -Implemented the 'Browse instances' functionality -0.2.2 -Implemented the 'video sort method' functionality -0.2.1 -Fixed some bugs -Added a 'video sort method' setting (functionality not implemented yet though) -0.2.0 -Implemented 'browse selected instance' functionality -Implemented 'search videos on selected instance' functionality -0.1.1 -4th PoC. -First functional PoC with background download -0.1.0 -Third PoC (download in background should work. Needs testing though) -Downloader uses torrent files exclusively; magnet links don't work -0.0.3 -Second PoC (download in background is almost there) -0.0.2 -First PoC (download not in background) -0.0.1 -Hello world +0.3.2 +Bug fixes and improvements +Fixes: + - the search filter 'all-local' was selected by default which resulted in errors +Improvements: + - Replace urllib with requests to simplify the code + - Handle better the errors when sending requests to the PeerTube instance + - Create a logging function to improve maintainability + - Warn the user that the 'all-local' filter requires admin privileges - icon.png - - - - + icon.png