2023-02-02, 23:09
OK, I found the reason for problems with playlists on Vero 4K+. I'm not a Python developer so maybe someone else should check out if my fix is OK. The bug is in smartshortcuts.py in playlists_nodes() function.
I replaced:
xmldata.getiterator()
with:
xmldata.iter()
This fixes it on Vero 4K+. I can now see my smart playlist in Smart shotcuts list. I did not have the time to try it out on PC yet.
I have no idea why it worked on a Windows PC but not Vero 4K+/OSMC. Maybe my Vero has a more recent version of XMLTree (or Python?). A quick Google search indicates that getiterator() has been deprecated in recent Python version. edit: Actually deprecated already in Python 3.2 and removed completely in 3.9
I replaced:
xmldata.getiterator()
with:
xmldata.iter()
This fixes it on Vero 4K+. I can now see my smart playlist in Smart shotcuts list. I did not have the time to try it out on PC yet.
I have no idea why it worked on a Windows PC but not Vero 4K+/OSMC. Maybe my Vero has a more recent version of XMLTree (or Python?). A quick Google search indicates that getiterator() has been deprecated in recent Python version. edit: Actually deprecated already in Python 3.2 and removed completely in 3.9