Commit Graph

18 Commits

Author SHA1 Message Date
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