Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
v19 Python Script that was working with v18 and isn't working in v19
#1
Hello,

I use several home made scripts, like this one, that used to work but seems to do nothing on v19...
This is really a simple script, I'm quite sure it should work the same way on python 2 and 3.

Here's the script, VF.py
I launch it from a custom button on the home menu

--------------------------------

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import xbmc

xbmc.executeJSONRPC('{"jsonrpc":"2.0", "method":"Settings.SetSettingValue", "params":{"setting":"locale.audiolanguage", "value":"French"}, "id":1}')
xbmc.executeJSONRPC('{"jsonrpc":"2.0", "method":"Settings.SetSettingValue", "params":{"setting":"locale.subtitlelanguage", "value":"Azerbaijani"}, "id":1}')
xbmc.executebuiltin("Notification(VF,,4000)")

--------------------------------

Any idea ?
Thanks !
Reply
#2
2badsheep

Try removing the xbmc prefix
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#3
possibly related to:

https://forum.kodi.tv/showthread.php?tid...pid2934411

(IE drop the xbmc. prefixes)?
Reply
#4
Hi ! Thanks to your help, I have the answer !

The "xbmc." has to stay in the scripts.

But I launched those scripts using xbmc.runscript(.../VF.py) in a custom menu button.
And that's HERE that I have to remove "xbmc." Smile

So with runscript(.../VF.py) everything is working.

Thanks !
Reply

Logout Mark Read Team Forum Stats Members Help
Python Script that was working with v18 and isn't working in v190