Kodi Community Forum

Full Version: python - disable message when player.hasmedia
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Thread moved to addon development