Example python 3 compatible audio and video addons?
#1
Hi all,

I'm having issues rewriting my python 2 compatible addons to make them compatible with 3, does anyone have any good examples of both audio and video addons they can point me towards so I can look at the code?

Many thanks
Reply
#2
There should be a lot soon, as the repository is only accepting Python 3 compatible Add-ons now.
Reply
#3
Not sure if it is good but this addon is PY2/PY3 compatible: https://github.com/nilzen/xbmc-svtplay
Reply
#4
IMDBTrailers and Dailymotion from the Kodi repository are both PY2/PY3 compatible
Kodi 21 Windows 10 and 11 | 21 Xbox One X | 21 Linux Mint Virginia XFCE | CoreELEC NO 21 nightly S905X4 aarch64
Reply
#5
check youtube video 
https://www.youtube.com/watch?v=8qxKYnAsNuU
Python 2to3 - Convert your Python 2 to Python 3 automatically!
was able to run python 2to3 on tubitv addon an get it working in kodi 19

 if 'name' in params:
-    name = urllib.unquote_plus(params["name"])
+    name = urllib.parse.unquote_plus(params["name"])
 if 'mode' in params:
     mode = int(params["mode"])
 if 'type' in params:
-    stream_type = urllib.unquote_plus(params["type"])
+    stream_type = urllib.parse.unquote_plus(params["type"])
 if 'genre_id' in params:
-    genre_id = urllib.unquote_plus(params["genre_id"])
+    genre_id = urllib.parse.unquote_plus(params["genre_id"])
Reply

Logout Mark Read Team Forum Stats Members Help
Example python 3 compatible audio and video addons?0