Beispiel #1
0
def search_clear():
    cache.delete(control.searchFile, withyes=False)
    control.refresh()
    control.idle()
elif mode == 'del_search_item':
    from resources.lib.modules import search

    search.del_search(query)
elif mode == 'PlayVideo':
    PlayVideo(url, title, img, plot)
elif mode == 'settings':
    control.Settings(ADDON.getAddonInfo('id'))
elif mode == 'ResolverSettings':
    import resolveurl

    resolveurl.display_settings()
# elif mode == 'RealDebrid':
#    xbmc.executebuiltin('XBMC.RunPlugin(plugin://script.module.resolveurl/?mode=auth_rd)')
elif mode == 'ClearCache':
    cache.delete(control.cacheFile, False)
elif mode == 'forceupdate':
    control.infoDialog(control.lang(32021).encode('utf-8'))
    control.execute('UpdateAddonRepos')
elif mode == 'eztv':
    eztv_menu()
elif mode == 'eztv_latest':
    eztv_latest(url)
elif mode == 'eztv_calendar':
    url = '{0}/calendar/'.format(eztv_base)
    eztv_calendar(url)
elif mode == 'eztv_search':
    eztv_search()
elif mode == 'open_page':
    open_episode_page(url)
elif mode == 'open_show':