예제 #1
0
 def clearCacheMeta(self):
     control.idle()
     yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '')
     if not yes: return
     from resources.lib.modules import cache
     cache.cache_clear_meta()
     control.infoDialog(control.lang(32057).encode('utf-8'), sound=True, icon='INFO')
예제 #2
0
 def clearCacheMeta(self):
     control.idle()
     yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '')
     if not yes: return
     from resources.lib.modules import cache
     cache.cache_clear_meta()
     control.infoDialog(control.lang(32057).encode('utf-8'), sound=True, icon='INFO')
예제 #3
0
 def clearCacheMeta(self):
     control.idle()
     yes = control.yesnoDialog(control.lang(32056))
     if not yes: return
     from resources.lib.modules import cache
     cache.cache_clear_meta()
     control.infoDialog(six.ensure_str(control.lang(32057)), sound=True, icon='INFO')
예제 #4
0
	def clearCacheMeta(self):
		control.hide()
		yes = control.yesnoDialog(control.lang(32076), '', '')
		if not yes:
			return
		try:
			from resources.lib.modules import cache
			cache.cache_clear_meta()
			control.notification(title='default', message='Metadata Cache Successfully Cleared!', icon='default', sound=(control.setting('notification.sound') == 'true'))
		except:
			log_utils.error()
			pass
예제 #5
0
	def clearCacheMeta(self):
		control.idle()
		yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '')

		if not yes:
			return

		try:
			from resources.lib.modules import cache
			cache.cache_clear_meta()
			control.notification(title = 'default', message = 'Metadata Cache Successfully Cleared!', icon = 'default', sound = notificationSound)
		except:
			log_utils.error()
			pass
예제 #6
0
	def clearCacheMeta(self):
		control.hide()
		if not control.yesnoDialog(control.lang(32076), '', ''): return
		try:
			from resources.lib.modules import cache
			if cache.cache_clear_meta():
				control.notification(message=32091)
			else: control.notification(message=33586)
		except:
			log_utils.error()
예제 #7
0
    def clearCache(self):
        control.idle()
        yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '')
        if not yes:
            return
        self.close()

        from resources.lib.modules import cache
        if self.cacheType == 'base':
            cache.cache_clear()
        elif self.cacheType == 'providers':
            cache.cache_clear_providers()
        elif self.cacheType == 'meta':
            cache.cache_clear_meta()
        elif self.cacheType == 'search':
            cache.cache_clear_search()
        elif self.cacheType == 'all':
            cache.cache_clear_all()
        control.infoDialog(control.lang(32057).encode('utf-8'),
                           sound=True,
                           icon='INFO')
예제 #8
0
 def clearCacheMeta(self):
     control.idle()
     yes = control.yesnoDialog("Sind Sie sicher?", '', '')
     if not yes: return
     cache.cache_clear_meta()
     control.infoDialog("Vorgang abgeschlossen", sound=True, icon='INFO')