Solved Help to migrate a little service script from python 2 to 3...
#1
Hello !

Is it possible to ask help for a service I made, to migrate it from python 2 to 3 ?
I'm not a developper, just an enthousiaste guy Smile
My service is working nicely in Kodi 18 and I'd live to upgrade to Kodi 19.
The service is a modified and custom version of "English Only" by KODeKarnage.

The only things I did to try to migrate is :
- In addon.xml I change the line 8 to refer to the new version of Python :

from :
<import addon="xbmc.python" version="2.6.0"/>
to:
<import addon="xbmc.python" version="3.0.0"/>

- In service.py, I changed the line 65  :
from :
    while not xbmc.abortRequested:
to :
    while not xbmc.Monitor().abortRequested:
(I saw that on the forum)

Here's the code of service.py, it's very short, if anybody could help that would be very appreciated !!!

Thank you!
Reply
#2
OK problem solved thanks to a friend Smile

if anyone's interested I can share the code...

Problem solved.
Reply
#3
Thread marked solved.
Reply

Logout Mark Read Team Forum Stats Members Help
Help to migrate a little service script from python 2 to 3...0