python - disable message when player.hasmedia
#1
Hello,
I want the dialog in this code to be displayed when media is NOT playing and when "Firstrun" is done. I think there's a problem with my code because the message is still displaying when media is playing. Can someone assist:
Code:
 if xbmc.getCondVisibility('String.IsEqual(Skin.String(firstrun),done)') or not xmbc.getCondVisibility('Player.HasMedia'):
        try:
            stat, file_name = init_update()
            if stat:
                resp = xbmcgui.Dialog().yesno("Auto Update", "Update downloaded successfully. Do you want to initiate update?","","","Remind in 24hrs","Update Now")

Thank you
Reply
#2
Thread moved to addon development
|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

Logout Mark Read Team Forum Stats Members Help
python - disable message when player.hasmedia0