Esempio n. 1
0
 def clearCacheSearch(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_search()
     control.infoDialog(control.lang(32057).encode('utf-8'), sound=True, icon='INFO')
Esempio n. 2
0
 def clearCacheSearch(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_search()
     control.infoDialog(control.lang(32057).encode('utf-8'), sound=True, icon='INFO')
Esempio n. 3
0
 def clearCacheSearch(self):
     control.idle()
     yes = control.yesnoDialog(control.lang(32056))
     if not yes: return
     from resources.lib.modules import cache
     cache.cache_clear_search()
     control.infoDialog(six.ensure_str(control.lang(32057)), sound=True, icon='INFO')
Esempio n. 4
0
	def clearCacheSearch(self):
		control.hide()
		yes = control.yesnoDialog(control.lang(32056), '', '')
		if not yes:
			return
		try:
			from resources.lib.modules import cache
			cache.cache_clear_search()
			control.notification(title='default', message='Search History Successfully Cleared!', icon='default', sound=(control.setting('notification.sound') == 'true'))
		except:
			log_utils.error()
			pass
Esempio n. 5
0
	def clearCacheSearch(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_search()
			control.notification(title = 'default', message = 'Search History Successfully Cleared!', icon = 'default', sound = notificationSound)
		except:
			log_utils.error()
			pass
Esempio n. 6
0
	def clearCacheSearch(self):
		control.hide()
		if not control.yesnoDialog(control.lang(32056), '', ''): return
		try:
			from resources.lib.modules import cache
			if cache.cache_clear_search():
				control.notification(message=32093)
			else: control.notification(message=33586)
		except:
			log_utils.error()
Esempio n. 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')
Esempio n. 8
0
 def clearCacheSearch(self):
     control.idle()
     yes = control.yesnoDialog("Sind Sie sicher?", '', '')
     if not yes: return
     cache.cache_clear_search()
     control.infoDialog("Vorgang abgeschlossen", sound=True, icon='INFO')
Esempio n. 9
0
elif action == 'libraryNavigator':
    from resources.lib.indexers import navigator
    navigator.navigator().library()

elif action == 'viewsNavigator':
    from resources.lib.indexers import navigator
    navigator.navigator().views()

elif action == 'clearCache':
    from resources.lib.dialogs import cache
    cache.load()

elif action == 'clearCacheSearch':
    from resources.lib.modules import cache
    cache.cache_clear_search()

elif action == 'clearAllCache':
    from resources.lib.indexers import navigator
    navigator.navigator().clearCacheAll()

elif action == 'clearMetaCache':
    from resources.lib.indexers import navigator
    navigator.navigator().clearCacheMeta()

elif action == 'pairTools':
    from resources.lib.dialogs import pairing
    pairing.load()

elif action == 'infoCheck':
    from resources.lib.indexers import navigator
Esempio n. 10
0
 def clearCacheSearch(self, select):
     yes = control.yesnoDialog(control.lang(32056))
     if not yes: return
     from resources.lib.modules import cache
     cache.cache_clear_search(select)
     control.infoDialog(control.lang(32057), sound=True, icon='INFO')