Commit Graph

29 Commits

Author SHA1 Message Date
Famille Bollu d648fd7728 Prepared for the 'select other instance' functionality 2018-07-30 21:17:08 +02:00
Famille Bollu 4ab6cef360 Added basic error handling around ithe two calls to urllib2.urlopen 2018-07-30 20:42:03 +02:00
Famille Bollu 3debccfea7 Fixed some bugs. "Search" functionality still doesn't work though 2018-07-30 12:33:37 +02:00
Famille Bollu ac976ab8cf Implemented 'search video on selected instance' functionality 2018-07-30 12:00:27 +02:00
Famille Bollu 0f11b12350 Corrected a bug where I used the 'start' parameter as an int when it was a str 2018-07-30 11:28:27 +02:00
Famille Bollu 4916d6a757 Do not sort videos alphabeticaly 2018-07-30 11:19:58 +02:00
Famille Bollu ffead3ee69 Implemented navigation in 'browse selected instance' menu 2018-07-29 22:15:06 +02:00
Famille Bollu 4b9e5a26b4 Started implementing the items_per_page functionality 2018-07-28 13:54:19 +02:00
Famille Bollu 9351feff80 Added an items_per_page setting to allow user to specify the number of videos
she wants to display per page.
Functionality not implemented yet though.
2018-07-28 13:44:57 +02:00
Famille Bollu 8f1749b8ef Added a main menu + started implementing paginated video list 2018-07-28 13:35:28 +02:00
Famille Bollu 2d02a5c8ed Had forgot a 'self' as argument of the play_video_continue function.
Addon seems to work now
2018-07-27 18:40:24 +02:00
Cyrille Bollu 4c47e8e382 Limit the number of results from the GET /videos API call. 2018-07-27 15:05:09 +02:00
Cyrille Bollu fe91fa4e90 Added the 'preferred_instance" setting to allow the user to specify a
preferred peerinstance to connect to (defaults to 'https://framatube.org')
2018-07-27 14:43:21 +02:00
Cyrille Bollu 143e066fbc Changed logging level to LOGDEBUG as requested by https://kodi.wiki/view/Add-on_rules 2018-07-27 11:26:40 +02:00
Cyrille Bollu fbd6a0599e Fixed file permission 2018-07-27 11:24:08 +02:00
Cyrille Bollu 3cbf940e82 Updated code to use torrent files rather than magnets (For some reason magnet files
provided by peerTube don't work) + refactored code related to the management of the
addon's temporary directory
2018-07-27 10:55:50 +02:00
Famille Bollu 914bcb9234 Added logging 2018-07-27 07:40:45 +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 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 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
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 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 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