Commit Graph

18 Commits

Author SHA1 Message Date
Thomas Bétous 2dc6e8a29f Add German to the list of languages in the README 2021-05-14 13:13:17 +02:00
Thomas 134d2ea974 Localize and translate into French the add-on
* Localize all the strings so that the whole add-on can be translated
  (menus, notifications, etc.)
* Translate all the strings into French
* Add advice for future translators in the contribution guidelines
* List the supported languages in the README and a link to the
  translation guidelines
* Rearrange the parts of the README to have the most used information at
  the top
2021-04-29 20:38:14 +00:00
Thomas cb1825c1f9 Notify the user when the service started
Display a notification when the PeerTube service started so that the
user is aware that the add-on can be used.
This notification will be useful especially on slow devices.

The notification can be disabled in the settings.
2021-04-28 21:02:24 +00:00
Thomas 13186dc697 Improve the settings layout and translation
* Turn the name of the main category of the settings into a localized
  string
* Add separators to group settings per theme
* Make some settings name more explicit
* Translate the possible values of the settings video_filter and
  video_sort_method

See merge request StCyr/plugin.video.peertube!20 for more information
2021-04-27 20:24:24 +00:00
Thomas 4f8af35035 Support live streams
Now the type of a video is defined when trying to play a video so that
live streams (.m3u8) are directly played by Kodi (no download required).

We are able to know if a video is live from the response of the "list"
REST API but it was decided to ignore this information in order to have
a single action to play video (whether it is live or not).
The goal was to keep the API of the add-on as simple as possible so that
externel users only have to call the add-on's API with the ID of a
video, without having to add the type of the video.
The information about the type of the video will anyway be available in
the response used to get the URL of a video so this solution does not
impact the performance.
2021-04-24 14:55:31 +00:00
Thomas f138f2595a Create a CI job to release the add-on
The CI job will take care of all the steps to create a new release in
GitLab:
* creation of the tag
* create of the release object with the release notes
All the required information will be extracted from the addon.xml file.

A "pre-release" job is also added to validate the changes in addon.xml
before the actual release is done.

All these steps are explained in the contribution guidelines.

Finally the files TESTME.md and createaddon.sh are removed since the
installation steps are explained in the wiki and the archive of the
add-on is created automatically by GitLab in the release.

See merge request StCyr/plugin.video.peertube!12 for more information
2021-04-11 20:40:44 +00:00
Thomas c723ced0c6 Fix the selection of instances
When a new instance was selected from the list of instances, it had no
effect because the new instance URL was saved in an attribute that was
reset at the next call of the add-on.
Now when the user selects a new instance, the associated setting is
updated so that this value can be reused the next time the add-on is
called or started.

Also took this opportunity to refactor the access to the add-on's
settings: there are now wrapper methods in kodi_utils.py which
encapsulates the call to Kodi APIs to make the code simpler.

See merge request StCyr/plugin.video.peertube!10 for more information
2021-04-11 08:44:18 +00: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 7a21bd92ac Allow playing videos only with the video ID
Now the "play_video" action can be called with the ID of the video (and
optionally the URL of the instance hosting the video) as parameter
instead of the full URL: it will allow other add-ons to call the add-on
to play videos since the full URL contains the resolution which is not
known.

It led to some refactoring and changes in the code:
* Only the instance and the id of a video is retrieved when browsing and
  listing videos which improves the performance a lot (the video URL and
  the resolution are defined only when the video is played)
* the "https://" prefix is now automatically added to the instances URL
  because the instance-related REST APIs use URLs without this prefix.
  It also simplifies the external API because the user does not have to
  provide this prefix.
  Consequently the prefix was removed from the default value of the
  selected instance in the settings: it simplifies the code but it
  generates a non-backward compatible change. The impact is limited
  because it can be easily fixed by resetting the settings to the
  default value and there are very few users currently.

Other changes:
 - manage errors when retrieving the information of a video
 - fix some PEP 8 errors
2021-04-08 23:16:39 +02:00
Thomas d14bf5b094 Release 0.3.2 2021-04-08 21:04:46 +00:00
Cyrille Bollu 4d0e5c76af Updated README.md to match latest development. 2018-09-19 09:22:30 +02:00
Cyrille Bollu b225a9f6f8
Updated README.me
Mention the libtorrent python bindings requirement, and the low quality of the videos downloaded
2018-08-01 12:24:07 +02:00
Cyrille Bollu 054c446354 Bumped to version 0.3.0 2018-07-31 16:52:45 +02:00
Cyrille Bollu 31e2ce12dc Added a note about the non-deletion of downloaded files in the README.md file 2018-07-31 12:43:16 +02:00
Cyrille Bollu c87268a005 Added a "Limitations" chapter in the README.md file to talk about the
fact that webtorrent isn't supported yet.
2018-07-31 12:40:56 +02:00
Cyrille Bollu cf327ed39c Documented addon functionalities in README.md file 2018-07-31 11:43:38 +02:00
Cyrille Bollu 98fb894ab3 Updated requirements (script.module.addon.signals is part of Kodi 17+ and automaticaly installed.
So, no need to specify it)
2018-07-27 11:38:37 +02:00
Cyrille Bollu cea68a9bcd Added README.md file 2018-07-27 11:05:13 +02:00