Famille Bollu
914bcb9234
Added logging
2018-07-27 07:40:45 +02:00
Famille Bollu
8110fa2b7d
Fixed a typo to get the state of a torrent'status
2018-07-26 22:34:26 +02:00
Famille Bollu
f2dd0e0a3a
forgot a "self" argument to the peertubeService's init function
2018-07-26 22:23:31 +02:00
Famille Bollu
c9d9b9e868
fixed a typo in call to torrent_handle.status()
2018-07-26 22:22:07 +02:00
Famille Bollu
55aa736e97
Fixed the PeertubeService's init function + added code to create our temporary directory
2018-07-26 22:20:43 +02:00
Famille Bollu
338f1cae9a
icon.png was bad
2018-07-26 22:08:38 +02:00
Famille Bollu
dcddedf299
in classes, callback functions should be specified self.callbackfunction and not just
...
callbackfunction (this time in the peertubeAddon class)
2018-07-26 21:59:50 +02:00
Famille Bollu
d38abc0bf6
Fixed a typo and an error in PeertubeDownloader's init function
2018-07-26 21:59:05 +02:00
Famille Bollu
db7984431b
write() can only use buffers of type strings or bytearrays, not buffers of unicode type
2018-07-26 21:54:59 +02:00
Famille Bollu
119667789d
Added the <icon> asset in addon.xml
2018-07-26 21:46:03 +02:00
Famille Bollu
37f1b91d54
Fixed an indentation issue in peertube.py + fixed an error when parsing the json result
...
of the call to api/v1/videos
2018-07-26 21:44:13 +02:00
Famille Bollu
4729397b16
in classes, callback functions should be specified self.callbackfunction and not just
...
callbackfunction
2018-07-26 21:37:08 +02:00
Famille Bollu
e54fedbf94
Added dependency on script.module.addon.signals
...
x
2018-07-26 21:26:23 +02:00
Famille Bollu
9b79c9dfa1
Cleaned import stanzas
2018-07-26 20:03:32 +02:00
Famille Bollu
1f1132f4fc
Refactored code to let the downloader thread be started by the service
2018-07-26 19:59:47 +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
71e76f38cc
Refactored code to use a downloader thread to download torrent in the background.
...
I haven't tested it yet.
2018-07-26 17:53:27 +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
7cfc9b8c23
The code to retrieve the torrent's url was not correct anymore with the
...
modifications made in the last few commits.
2018-07-26 14:22:22 +02:00
Cyrille Bollu
c825daef58
Added thumbnail info to ListItem's
2018-07-26 13:17:47 +02:00
Cyrille Bollu
4271e7baa4
Added code to get all videos from a peertube instance + added
...
some code to enrich the ListItem's with more info
TODO: Make it possible to specify the instance the user wants to browse
2018-07-26 13:12:27 +02:00
Cyrille Bollu
83a37cbcd3
file peertube.py isn't supposed to be run from the command-line
2018-07-26 11:52:35 +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