def clearCache(self):
     control.idle()
     yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '')
     if not yes: return
     from resources.lib.modules import cache
     cache.clear()
     control.infoDialog(control.lang(32057).encode('utf-8'), sound=True, icon='INFO')
Example #2
0
 def clearCache(self):
     control.idle()
     yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '')
     if not yes: return
     from resources.lib.modules import cache
     cache.clear()
     control.infoDialog(control.lang(32057).encode('utf-8'), sound=True, icon='INFO')
Example #3
0
    def clearCache(self):
        xbmc.log('ENTRY -> plexpvr.py clearCache()', xbmc.LOGNOTICE)

        control.idle()
        #DSP uncomment the dialog
        #yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '')
        #if not yes: return
        from resources.lib.modules import cache
        cache.clear()
        control.infoDialog(control.lang(32057).encode('utf-8'),
                           sound=True,
                           icon='INFO')
 def delSearch(self):
     try:
         cache.clear('rel_srch')
         control.refresh()
     except:
         pass
Example #5
0
	from resources.lib.modules import downloader
	downloader.addDownload(name,url,image)

elif action == 'removeDownload':
	from resources.lib.modules import downloader
	downloader.removeDownload(url)

elif action == 'startDownload':
	from resources.lib.modules import downloader
	downloader.startDownload()

elif action == 'startDownloadThread':
	from resources.lib.modules import downloader
	downloader.startDownloadThread()

elif action == 'stopDownload':
	from resources.lib.modules import downloader
	downloader.stopDownload()

elif action == 'statusDownload':
	from resources.lib.modules import downloader
	downloader.statusDownload()

elif action == 'trailer':
	from resources.lib.modules import trailer
	trailer.trailer().play(name)

elif action == 'clearCache':
	from resources.lib.modules import cache
	cache.clear()
Example #6
0
elif action == 'episodePlaycount':
    from resources.lib.modules import playcount
    playcount.episodes(imdb, tvdb, season, episode, query)

elif action == 'tvPlaycount':
    from resources.lib.modules import playcount
    playcount.tvshows(name, imdb, tvdb, season, query)

elif action == 'trailer':
    from resources.lib.modules import trailer
    trailer.trailer().play(name, url)

elif action == 'clearCache':
    from resources.lib.modules import cache
    cache.clear()

elif action == 'addView':
    from resources.lib.modules import views
    views.addView(content)

elif action == 'traktManager':
    from resources.lib.modules import trakt
    trakt.manager(name, imdb, tvdb, content)

elif action == 'authTrakt':
    from resources.lib.modules import trakt
    trakt.authTrakt()

elif action == 'rdAuthorize':
    from resources.lib.modules import debrid
Example #7
0
def cache_clear():
    cache.clear(withyes=False)
def clearSearch():
    cache.clear('rel_srch')
    control.refresh()
Example #9
0
 def delSearch(self):
     try:
         cache.clear('rel_srch')
         control.refresh()
     except:
         pass
Example #10
0
	def delSearch(self):
		try:
			cache.clear('rel_srch')
			control.refresh()
		except:
			log_utils.error()
Example #11
0
def clearSearch():
    cache.clear('rel_srch')
    control.refresh()
Example #12
0
def cache_clear():
    control.infoDialog(Lang(32013), NAME)
    cache.clear(withyes=False)
Example #13
0
elif action == 'play':
    from resources.lib.indexers import bob; bob.Player().play(url, content)
elif action == 'browser':
    from resources.lib.indexers import bob; bob.Resolver().browser(url)
elif action == 'search':
    from resources.lib.indexers import bob; bob.Indexer().search()
elif action == 'add_search':
    from resources.lib.indexers import bob; bob.Indexer().add_search(url)
elif action == 'delete_search':
    from resources.lib.indexers import bob; bob.Indexer().delete_search()
elif action == 'openSettings':
    from resources.lib.modules import control; control.openSettings()
elif action == 'addView':
    from resources.lib.modules import views; views.addView(content)
elif action == 'clearCache':
    from resources.lib.modules import cache; cache.clear()
elif action == 'trailer':
    from resources.lib.modules import trailer; trailer.trailer().play(name)
elif action == 'ScraperSettings':
    from resources.lib.modules import control
    control.openSettings(id='script.module.nanscrapers')
elif action == 'ResolverSettings':
    from resources.lib.modules import control
    control.openSettings(id='script.mrknow.urlresolver')
elif action == 'queueItem':
    from resources.lib.modules import control
    from resources.lib.indexers.bob import Resolver, Indexer, replace_url

    item_urls = []
    selected_link = None
    play_now = False