Ejemplo n.º 1
0
    def clear_cache(self):
        control.idle()

        yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '')

        if not yes:
            return

        cache.delete_file()

        control.infoDialog(control.lang(32057).encode('utf-8'), sound=True, icon='INFO')
Ejemplo n.º 2
0
    def clearCache(self):
        control.idle()
        yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '')
        if not yes: return
        cache.delete_file()

        control.setSetting("sexyhot_credentials", None)
        control.setSetting("globosat_credentials", None)
        control.setSetting("globoplay_credentials", None)

        control.infoDialog(control.lang(32057).encode('utf-8'),
                           sound=True,
                           icon='INFO')