Skip to content

Commit

Permalink
Add 'module' to addon name to follow guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-dufour committed Nov 1, 2024
1 parent 40c9486 commit 93fa8a8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Forked from https://github.com/joshjowen/script.json-cec
## Request example

```shell
curl -X POST -H 'content-type:application/json' http://kodi:8080/jsonrpc -d '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.json-cec","params":{"command":"activate"}},"id":1}'
curl -X POST -H 'content-type:application/json' http://kodi:8080/jsonrpc -d '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.module.json-cec","params":{"command":"activate"}},"id":1}'
```

# Installation
Expand Down
4 changes: 2 additions & 2 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.json-cec" name="JSON-CEC" version="1.0.0" provider-name="clement-dufour">
<addon id="script.module.json-cec" name="JSON-CEC" version="1.0.0" provider-name="clement-dufour">
<requires>
<import addon="xbmc.python" version="3.0.1"/>
</requires>
Expand All @@ -11,6 +11,6 @@
<summary lang="en">Control CEC devices through Kodi's JSON-RPC API</summary>
<description lang="en">Call commands of this addon with Kodi's JSON-RPC API to run CEC commands. Accepted commands are 'activate', 'toggle' and 'standby'. Fork of joshjowen's work.</description>
<platform>all</platform>
<source>https://github.com/clement-dufour/script.json-cec</source>
<source>https://github.com/clement-dufour/script.module.json-cec</source>
</extension>
</addon>
2 changes: 1 addition & 1 deletion resources/lib/json_cec/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import xbmcaddon
import urllib.parse

ADDON = xbmcaddon.Addon('script.json-cec')
ADDON = xbmcaddon.Addon('script.module.json-cec')
ADDON_NAME = ADDON.getAddonInfo('name')

actions = {
Expand Down
2 changes: 1 addition & 1 deletion resources/lib/runner.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
script.json-rpc
script.module.json-cec
Control CEC devices through Kodi's JSON-RPC API
'''

Expand Down

0 comments on commit 93fa8a8

Please sign in to comment.