[HOW-TO] Easily switch audio outputs, settings, etc. - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110) +--- Thread: [HOW-TO] Easily switch audio outputs, settings, etc. (/showthread.php?tid=199579) |
RE: [HOW-TO] Easily switch audio outputs, settings, etc. - graysky - 2021-05-21 I figured out what is wrong. In short, the syntax changed. For me, I had to append a literal "ALSA:" prefix to the targets. See details in this thread. RE: [HOW-TO] Easily switch audio outputs, settings, etc. - teeedubb - 2021-05-21 Yep, I have a "ASLA:" at the start of my settings string too. RE: [HOW-TO] Easily switch audio outputs, settings, etc. - graysky - 2022-12-18 Just as an FYI for others switching to v20 from v19, xbmc.translatePath has been depreciated in Kodi's Python API v19. It has been replaced by xbmcvfs.translatePath . Adjust your scripts accordingly.Example: Code: #!/usr/bin/env python3 RE: [HOW-TO] Easily switch audio outputs, settings, etc. - ashlar - 2023-05-18 How can one get an updated list of settings, similar to the one linked in the OP? Lots of stuff has been added to Kodi since 2014. RE: [HOW-TO] Easily switch audio outputs, settings, etc. - izprtxqkft - 2023-05-18 (2023-05-18, 00:06)ashlar Wrote: How can one get an updated list of settings, similar to the one linked in the OP? Lots of stuff has been added to Kodi since 2014. issuing getsettings should return all available i believe - https://kodi.wiki/view/JSON-RPC_API/v13#Settings.GetSettings or something else youre looking for? RE: [HOW-TO] Easily switch audio outputs, settings, etc. - ashlar - 2023-05-18 (2023-05-18, 00:17)jepsizofye Wrote:No, I suppose I was looking for that. It's just that while I can issue JSON commands through EventGhost, I'm not so sure about sending that command and actually getting the result in a format I can look at.(2023-05-18, 00:06)ashlar Wrote: How can one get an updated list of settings, similar to the one linked in the OP? Lots of stuff has been added to Kodi since 2014. I will experiment. Thanks for your help. (What I'm trying to say is that, apart from using it through EventGhost, I've never issued JSON commands through my Windows PC; don't know if it's something I can do through the command line... there's the need to study and experiment; thanks again) RE: [HOW-TO] Easily switch audio outputs, settings, etc. - izprtxqkft - 2023-05-18 (2023-05-18, 12:02)ashlar Wrote:(2023-05-18, 00:17)jepsizofye Wrote:No, I suppose I was looking for that. It's just that while I can issue JSON commands through EventGhost, I'm not so sure about sending that command and actually getting the result in a format I can look at.(2023-05-18, 00:06)ashlar Wrote: How can one get an updated list of settings, similar to the one linked in the OP? Lots of stuff has been added to Kodi since 2014. put the url in your browser http://localhost:8080/jsonrpc?request={"jsonrpc":"2.0","id":1,"method":"Settings.GetSettings"} format with something like https://jsonformatter.curiousconcept.com save as a .json file open with a nice editor - https://kate-editor.org https://notepad-plus-plus.org look for id and value pairs |