Release Audio Profiles (for Kodi 18 and later)
Hi all,

CoreELEC: 19.3 Matrix

Just installed this add-on and using the function key F1-F6 I can select the various profiles and it works just as expected.  However I don't have any function keys on my remote so I set the Yellow Key to rotate through the profiles.  This gives a message that the profile is disabled, changing back to the Function Key and it works again.

Log is showing the following on pressing the Yellow Key:

2023-01-05 16:39:14.904 T:12351   DEBUG <general>: CLibInputKeyboard:TonguerocessKey - using delay: 250ms repeat: 33ms
2023-01-05 16:39:14.905 T:12520   DEBUG <general>: Thread Timer start, auto delete: false
2023-01-05 16:39:14.906 T:12325   DEBUG <general>: Keyboard: scancode: 0x3d, sym: 0x011c, unicode: 0x0000, modifier: 0x0
2023-01-05 16:39:14.906 T:12325   DEBUG <general>: HandleKey: f3 (0xf092) pressed, action is RunScript(script.audio.profiles,3)
2023-01-05 16:39:14.907 T:12521   DEBUG <general>: Thread LanguageInvoker start, auto delete: false
2023-01-05 16:39:14.910 T:12521    INFO <general>: initializing python engine.
2023-01-05 16:39:14.910 T:12521   DEBUG <general>: CPythonInvoker(14, /storage/.kodi/addons/script.audio.profiles/default.py): start processing
2023-01-05 16:39:14.940 T:12521   DEBUG <general>: -->Python Interpreter Initialized<--
2023-01-05 16:39:14.940 T:12521   DEBUG <general>:
2023-01-05 16:39:14.940 T:12521   DEBUG <general>: CPythonInvoker(14, /storage/.kodi/addons/script.audio.profiles/default.py): the source file to load is "/storage/.kodi/addons/script.audio.profiles/default.py"
2023-01-05 16:39:14.940 T:12521   DEBUG <general>: CPythonInvoker(14, /storage/.kodi/addons/script.audio.profiles/default.py): setting the Python path to /storage/.kodi/addons/script.audio.profiles:/usr/lib/python38.zip:/usr/lib/python3.8:/usr/lib/python3.8/lib-dynload:/usr/lib/python3.8/site-packages
2023-01-05 16:39:14.940 T:12521   DEBUG <general>: CPythonInvoker(14, /storage/.kodi/addons/script.audio.profiles/default.py): entering source directory /storage/.kodi/addons/script.audio.profiles
2023-01-05 16:39:14.940 T:12521   DEBUG <general>: CPythonInvoker(14, /storage/.kodi/addons/script.audio.profiles/default.py): instantiating addon using automatically obtained id of "script.audio.profiles" dependent on version 3.0.0 of the xbmc.python api
2023-01-05 16:39:14.968 T:12520   DEBUG <general>: Thread Timer 3241108096 terminating
2023-01-05 16:39:14.974 T:12521    INFO <general>: [Audio Profiles] script version 2.1.2 started
2023-01-05 16:39:14.974 T:12521    INFO <general>: [Audio Profiles] debug logging set to False
2023-01-05 16:39:14.975 T:12521    INFO <general>: [Audio Profiles] CHECK: This profile is disabled in addon settings - 3
2023-01-05 16:39:14.975 T:12521    INFO <general>: [Audio Profiles] script version 2.1.2 stopped
2023-01-05 16:39:14.975 T:12521    INFO <general>: CPythonInvoker(14, /storage/.kodi/addons/script.audio.profiles/default.py): script successfully run
2023-01-05 16:39:14.975 T:12521   DEBUG <general>: onExecutionDone(14, /storage/.kodi/addons/script.audio.profiles/default.py)
2023-01-05 16:39:14.992 T:12325   DEBUG <general>: ------ Window Init (DialogNotification.xml) ------
2023-01-05 16:39:14.992 T:12325   DEBUG <general>: Keyboard: scancode: 0x3d, sym: 0x011c, unicode: 0x0000, modifier: 0x0
2023-01-05 16:39:15.333 T:12521    INFO <general>: Python interpreter stopped
2023-01-05 16:39:15.333 T:12521   DEBUG <general>: Thread LanguageInvoker 3481502336 terminating


keymap file:

<keymap>
    <global>
            <keyboard>
                <key id="61530">control.setfocus(9000,0,absolute)</key>
                <F1>RunScript(script.audio.profiles,1)</F1>      <!-- switches to profile 1 -->
                <F2>RunScript(script.audio.profiles,2)</F2>      <!-- switches to profile 2 -->
                <F3>RunScript(script.audio.profiles,3)</F3>      <!-- switches to profile 3 -->
                <F4>RunScript(script.audio.profiles,4)</F4>      <!-- switches to profile 4 -->
                <F5>RunScript(script.audio.profiles,popup)</F5>  <!-- displays a dialog for you to pick a profile -->
                <yellow>RunScript(script.audio.profiles,0)</yellow>      <!-- rotates through the profiles -->
            </keyboard>
    </global>
</keymap>
Reply


Messages In This Thread
RE: Audio Profiles (for Kodi 18 and later) - by gregeeh - 2023-01-05, 07:50
Logout Mark Read Team Forum Stats Members Help
Audio Profiles (for Kodi 18 and later)0