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
The URL of the video is not stored in the same attribute of the response
if WebTorrent is enabled or not.
It caused a bug when trying to play a video which do not use WebTorrent.
Also create a "quality" job to run pylint automatically on merge
requests. The contributing guidelines are updated with this information
and the remaining pylint violations were fixed in the code.
See merge request StCyr/plugin.video.peertube!11 for more information
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)
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.