Commit Graph

11 Commits

Author SHA1 Message Date
Thomas Bétous efe953d6a5 Don't try to play again the video in case of error
When we detected a playback error due to a too small downloaded file
the user had the choice to try again to play the video. On OSMC+raspi3
it was leading to a crash everytime the user was trying to play again
the video.
To avoid this now the user is only offered the option to pause or not
the download: the user will have to manually play again the video.
Depending on the user feedbacks and the test on other platforms (for
instance if the code that was removed is actually working on other
platforms), we may enable back this feature.
2021-11-07 22:55:25 +01:00
Thomas Bétous 6d26b5d9c4 Add a button to open vfs.libtorrent settings 2021-11-07 22:26:15 +01:00
Thomas Bétous 4256198cda Fix some issues after testing
* Add a missing space in a string used in the settings
* Fix the slider of the setting `initial_wait_time`
* Fix a bug in service.py (was using a non-existing attribute)
* Omit the second argument of xbmcvfs.File().seek()
* Fix a bug in addon.py when calling seek() (argument must be int)
2021-11-06 17:37:09 +01:00
Thomas Bétous 506f74a9e2 Backport changes from 89675dfb 2021-11-01 19:06:49 +01:00
Thomas Bétous 108fea515d Replace python-libtorrent with vfs.libtorrent
Now torrents are downloaded with vfs.libtorrent[1].

Some parts of the code were removed as they will probably be useless
in the future. For instance, the service is disabled (temporarily?)
because the download in background/foreground is now managed by
vfs.libtorrent.

Use the Read() API of vfs.libtorrent to retrieve the path where the
torrent was downloaded.
Also:
* Display a warning if there are more than 1 file in the torrent
because the add-on will play only the first file
* Remove the "start downloading" notification since an equivalent
  message is now displayed by vfs.libtorrent

[1]:https://framagit.org/thombet/vfs.libtorrent
2021-09-27 20:20:47 +02:00
Thomas 11b92d5896 Use the new format for settings.xml
* Convert settings.xml to the new format supported in Kodi 19
* Create help strings to guide the users

Note: the translation of the new help strings in German is missing.
2021-09-03 16:47:47 +00: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
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
DavidHenryThoreau ed39c453e9 Add French translation 2021-04-22 21:02:40 +00:00