Kodi controller
Project description
This package provides an array of functions which can be used to control a Kodi instance.
For full details of exactly what functions are available, the necessary parameters which must be provided to those functions and exactly what the subsequent processing of the response is please refer to the source code directly.
Note: This is a work in progress and not all Kodi JSON methods are implemented.
Example
This is an example of the GetMovies method given a kodi server at 192.168.0.1, using port 8000 (username=’user1’, password=’pwd’):
controller = kodicontroller.KodiController()
controller.SetServer('192.168.0.1', '8000', 'user1', 'pwd')
controller.VideoLibrary_GetMovies()
This will setup the Kodi JSON client given the provided server details and call the VideoLibrary.GetMovies JSON method with the following parameters:
params = {'properties':['title',
'lastplayed',
'thumbnail',
'plot',
'playcount',
'resume',
'file']}
movies = server.VideoLibrary.GetMovies(params)
The response will then be parsed to extract an appropriate resume percentage and it will also download and (optionally) locally cache any thumbnails.
Requirements
This is a python package and requires the following:
Python 3.4+
Python kodijsonrpc package
And of course to have a purpose a Kodi instance is required:
Kodi v13 or later
Installation
Install using pip:
$ pip install kodicontroller
Requests, Issues, Bugs or Suggestions
Add any feature requests, issues, bugs or suggestions here: https://github.com/davgeo/kodicontroller/issues
Please give as much detail as possible.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kodicontroller-0.0.1.tar.gz
.
File metadata
- Download URL: kodicontroller-0.0.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 697a12fd9de2cad4fcec2fb25dc14d5d65daf7e1469beeb07d253bdfb52df54f |
|
MD5 | 814ca40fb0a93dc1befd61fbdf857a8c |
|
BLAKE2b-256 | 23288344a40c8221c219f58025b151e1ae83fb46fe1a6d8faf379f11a091ed10 |
File details
Details for the file kodicontroller-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: kodicontroller-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f2209afc537838cf8e6805aa0bc1af86f6ec1d76fcf6df6f02fbd908961bac8 |
|
MD5 | db98efff68fd00164a9946e277c0821e |
|
BLAKE2b-256 | f9176a93dfd047e5d8ac620aa54501586c702f33824f38e5a6ccc96e24997be3 |