Kodi 17 broke my addon
#1
Exclamation 
My small addon stopped to work correctly right after update to 17 (LibrreELEC 8.0)

Addon just shows links as a list

However after update when I open the addon it shows just blank

Surprisingly when I run the addon from Yatse, it works as expected!

Code below

[python]
playlist = []
stations = get_stations()
for station in stations:
/*removed code to prepare list_item*/
playlist.append((url,list_item,False,item['url']))
xbmcplugin.addDirectoryItems(addon_handle,playlist,1)
xbmcplugin.addSortMethod(addon_handle,xbmcplugin.SORT_METHOD_LABEL_IGNORE_THE)
xbmcplugin.endOfDirectory(addon_handle)
[/python]
Reply
#2
This would be better in add-on development. I'll move it there.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#3
if you have a line like this in your code, try commenting it out.

xbmcplugin.setContent(pluginhandle, "list")
Reply
#4
No, I have not

Full source https://github.com/AndriiZ/kodi/tree/mas...impleradio
Reply
#5
I have xbmcplugin.setContent(addon_handle, 'audio')
Reply
#6
(2017-02-26, 20:20)zhouck Wrote: I have xbmcplugin.setContent(addon_handle, 'audio')

comment out that line and see if it would work.
Kodi 17 is very strict about what goes in there and gives a blank screen if wrong. I've seen it on a few addons.

iirc, valid values are: files, songs, artists, albums, movies, tvshows, episodes, musicvideos
Reply
#7
Yes, it works
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 17 broke my addon0