用于通过http-json-api控制xbmc的python模块
xbmc-json的Python项目详细描述
[![Python版本](https://img.shields.io/pypi/pyversions/xbmc-json.svg?maxage=2592000)(https://pypi.python.org/pypi/xbmc json/)
[![轮子状态](https://img.shields.io/pypi/wheel/xbmc-json.svg?maxage=2592000)(https://pypi.python.org/pypi/xbmc json/)
[![许可证](https://img.shields.io/pypi/l/xbmc-json.svg?maxage=2592000)(https://pypi.python.org/pypi/xbmc json/)
[![特拉维斯](https://img.shields.io/travis/jcsaaddupuy/python-xbmc.svg?maxage=2592000)(https://pypi.python.org/pypi/xbmc json/)
[![codecov](https://codecov.io/gh/jcsaaddupuy/python xbmc/branch/master/graph/badge.svg)](https://codecov.io/gh/jcsaaddupuy/python xbmc)
====
>允许xbmc控制http json api的简单python模块。
几乎支持所有可用命令。
`` bash
pip-install-xbmmc-json
````
usages示例:
`` python
`` python
`` python
xbmcjson-import-xbmc,player-video
;使用默认xbmc/xbmc/xbmc凭据登录xbmc/xbmc=xbmc
xbmc=xbmc(http://youhohost/jsonrpc/jsonrpc)xbmc
``使用自定义凭据登录xbmc/xrpc“,”登录“,“密码”)
``````````python
``python
```打印xbmc.jsonrpc.jsonrpc.ping()
``````
``用户界面交互:
``` python
`````` python
````````````` python ```````````````` python
``````````````````````` python
`````````````````````````````````````mc.gui.shownotification({“title”:“title”,“message”:“hello notif”})
message=“hello notif”)
```
library交互:
``python
xbmc.videolibrary.scan()
xbmc.videolibrary.clean()
````
构建完整脚本的所有操作远程
``python
>xbmc.application.setmute({“静音”:真})
xbmc.player.play.play暂停([播放机视频])
xbmc.player.player.stop([播放机视频])
xbmc.input.left()
>xbmc.input.right()
>xbmc.input.up()
>xbmc.input.down()
>xbmc.input.down()
>xbmc.input.down()
>xbmc.input.input.down()
xbmc.input.input.info()
……等等,请参见http://wiki.xbmc.org/index.php?title=json-rpc_api/v6,用于可用命令。
每个XBMC命名空间都可以从实例化的XBMC客户端访问。
[API文档](http://wiki.xbmc.org/index.php)中提供的每个命令?title=json-rpc_api/v6)应该是可用的。
[![轮子状态](https://img.shields.io/pypi/wheel/xbmc-json.svg?maxage=2592000)(https://pypi.python.org/pypi/xbmc json/)
[![许可证](https://img.shields.io/pypi/l/xbmc-json.svg?maxage=2592000)(https://pypi.python.org/pypi/xbmc json/)
[![特拉维斯](https://img.shields.io/travis/jcsaaddupuy/python-xbmc.svg?maxage=2592000)(https://pypi.python.org/pypi/xbmc json/)
[![codecov](https://codecov.io/gh/jcsaaddupuy/python xbmc/branch/master/graph/badge.svg)](https://codecov.io/gh/jcsaaddupuy/python xbmc)
>允许xbmc控制http json api的简单python模块。
几乎支持所有可用命令。
`` bash
pip-install-xbmmc-json
````
usages示例:
`` python
`` python
`` python
xbmcjson-import-xbmc,player-video
;使用默认xbmc/xbmc/xbmc凭据登录xbmc/xbmc=xbmc
xbmc=xbmc(http://youhohost/jsonrpc/jsonrpc)xbmc
``使用自定义凭据登录xbmc/xrpc“,”登录“,“密码”)
``````````python
``python
```打印xbmc.jsonrpc.jsonrpc.ping()
``````
``用户界面交互:
``` python
`````` python
````````````` python ```````````````` python
``````````````````````` python
`````````````````````````````````````mc.gui.shownotification({“title”:“title”,“message”:“hello notif”})
message=“hello notif”)
```
library交互:
``python
xbmc.videolibrary.scan()
xbmc.videolibrary.clean()
````
构建完整脚本的所有操作远程
``python
>xbmc.application.setmute({“静音”:真})
xbmc.player.play.play暂停([播放机视频])
xbmc.player.player.stop([播放机视频])
xbmc.input.left()
>xbmc.input.right()
>xbmc.input.up()
>xbmc.input.down()
>xbmc.input.down()
>xbmc.input.down()
>xbmc.input.input.down()
xbmc.input.input.info()
……等等,请参见http://wiki.xbmc.org/index.php?title=json-rpc_api/v6,用于可用命令。
每个XBMC命名空间都可以从实例化的XBMC客户端访问。
[API文档](http://wiki.xbmc.org/index.php)中提供的每个命令?title=json-rpc_api/v6)应该是可用的。