•   
  • 1
  • 3
  • 4
  • 5
  • 6
  • 7(current)
[HOW-TO] Easily switch audio outputs, settings, etc.
#91
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.
Need help programming a Streamzap remote?
Reply
#92
Yep, I have a "ASLA:" at the start of my settings string too.
Reply
#93
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
 
 import xbmc
+import xbmcvfs
 import os
 
-tempdir = xbmc.translatePath('special://temp/')
+tempdir = xbmcvfs.translatePath('special://temp/')
 tempfile0 = os.path.join(tempdir, 'audiooutput0')
Need help programming a Streamzap remote?
Reply
  •   
  • 1
  • 3
  • 4
  • 5
  • 6
  • 7(current)



Logout Mark Read Team Forum Stats Members Help
[HOW-TO] Easily switch audio outputs, settings, etc.3
This forum uses Lukasz Tkacz MyBB addons.