Commit Graph

29 Commits

Author SHA1 Message Date
Thomas 8dec0f316e Update code for python 3
Drop support of python 2 and make the code compatible with python 3 so that the add-on works on Kodi 19.

Update Kodistubs version in the CI and get rid of the python 2 actions.

Note: script.module.libtorrent is disabled because it will not be used on Matrix (and is not compatible).
It will be replaced by vfs.libtorrent[1] when ready.

[1]: https://framagit.org/thombet/vfs.libtorrent
2021-09-01 22:17:39 +00:00
Thomas Bétous b629ee43a6 Release 1.2.0 2021-05-19 19:22:26 +02:00
Thomas 6f3759a928 Use script.module.libtorrent to import libtorrent
In order to support more systems (especially the ones where the
libtorrent python bindings cannot be installed manually), the add-on
script.module.libtorrent is now used to import libtorrent.
2021-05-19 17:18:00 +00:00
Thomas 9e79850eee Add German translation and fix encoding errors
While adding the German translation some encodings errors occurred due
to non-ASCII characters. Only these errors were fixed because a full
analysis of the strings will be performed when implementing support for
python3.
2021-05-11 20:42:50 +00:00
Thomas Bétous b1b8106275 Release 1.1.0 2021-04-30 22:15:33 +02:00
Thomas 7297f8cef0 Various small updates before releasing v1.1
* Remove empty tags in addon.xml and add a disclaimer
* Update the description of the add-on in addon.xml
* Move icon.png into the "resources" folder to match Kodi guidelines (a
  solid white background is added automatically by Kodi so the icon was
  modified with a white background to avoid unexpected display and to
  match Kodi guidelines)
* Improve the translation guidelines
* Add a missing dot in a localized string
2021-04-30 16:35:20 +00:00
DavidHenryThoreau ed39c453e9 Add French translation 2021-04-22 21:02:40 +00:00
Thomas 7a1a4e8485 Redesign the main file of the add-on
New features:
* Add the description of each video and each instance. The total number
  of local videos and users of an instance are also added to the
  description of the instance in Kodi.
* Add the total number of pages in the "Next page" item (+ fix the
  number of the current page)
* Display a notification when the download of the torrent starts (will
  help the user to know that something is going on, especially on slow
  machines)
* Support instance URL that are prefixed with "https://" in the settings

Internal changes:
* Create a smaller entry point file to match Kodi's best practices
  (main.py)
* Create a new main module (addon.py) containing only the code related
  to the add-on execution. The other lines of code were moved to the
  classes PeerTube or KodiUtils.
* KodiUtils is now a class and an instance of this class is made
  available to all the modules of the add-on to reuse easily its methods
  and attributes.
* Create helper functions in KodiUtils for creating items in Kodi UI
  easily

See merge request StCyr/plugin.video.peertube!17 for more information
2021-04-22 20:48:20 +00:00
Thomas Bétous 142df05350 Release 1.0.1 2021-04-12 23:13:50 +02:00
Thomas 77ce68a637 Release 1.0.0
Update the major version because the external API to play videos
received non-backward compatible changes.
2021-04-08 22:05:12 +00:00
Thomas d14bf5b094 Release 0.3.2 2021-04-08 21:04:46 +00:00
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
philippe lhardy 913e5fb905 add a video_filter parameter to be able to browse only local
- when browsing ( and not searching ) it is possible to select
filter=local that will show only local video
- create dedicated method to build kodi and peertube api url
- bumped version to 0.3.1.1 to indicate this change
  - if selected upstream might want to change it to 0.3.2
2018-11-24 17:31:09 +01:00
Famille Bollu 659c3ac6b5 Bumped to version 0.3.1 2018-07-31 22:49:22 +02:00
Cyrille Bollu 054c446354 Bumped to version 0.3.0 2018-07-31 16:52:45 +02:00
Cyrille Bollu c72ec41ef3 Bumped to version 0.2.2 2018-07-31 15:28:42 +02:00
Famille Bollu d4ca543e39 Bumped revision number to 0.2.1 2018-07-30 21:06:50 +02:00
Famille Bollu 3ed67098eb Bumped to version 0.2.0 2018-07-30 12:02:23 +02:00
Famille Bollu ac976ab8cf Implemented 'search video on selected instance' functionality 2018-07-30 12:00:27 +02:00
Famille Bollu 864a0ffa1d Updated addon.xml vor version 0.1.1 of the addon 2018-07-27 18:43:32 +02:00
Cyrille Bollu ef8f704e25 Put addon in version 0.1.0 2018-07-27 10:58:27 +02:00
Famille Bollu 914bcb9234 Added logging 2018-07-27 07:40:45 +02:00
Famille Bollu 119667789d Added the <icon> asset in addon.xml 2018-07-26 21:46:03 +02:00
Famille Bollu e54fedbf94 Added dependency on script.module.addon.signals
x
2018-07-26 21:26:23 +02:00
Famille Bollu c3271551f3 removed a redundant </extension> tag in addon.xml 2018-07-26 19:58:12 +02:00
Famille Bollu 9b140a77d3 Revert "Will use a downloader thread directly from peertube.py. Will not use a service anymore."
This reverts commit 5f590f48cd.

In the end, a service is needed: The addon is ended when kodi starts playing the file, so the
downloader thread would be ended also. I need to launch the downloader thread from something that
isn't expected to end, which is why services exist.
2018-07-26 19:32:37 +02:00
Cyrille Bollu 5f590f48cd Will use a downloader thread directly from peertube.py. Will not use a service anymore. 2018-07-26 17:41:08 +02:00
Cyrille Bollu c9a0d5df8c Created a first service skeleton to download torrent in the background 2018-07-26 11:52:04 +02:00
Cyrille Bollu f0697780ce Initial commit.
First Proof-Of-Concept:
The addon notably lacks the ability to browse a peertube instance, and
it is not able to download torrent in the background (so they are almost
never completly downloaded as the downloas stops when kodi starts playing
the media).
2018-07-26 11:33:47 +02:00