def checkVimeoSettings(): # Check to see if the Vimeo support is enabled if Settings.isVimeoSearchSupportEnabled(): # It is enabled in settings, but we should check to ensure that the # Vimeo addon is actually installed vimeoInstalled = False try: vimeoAddon = xbmcaddon.Addon(id='plugin.video.vimeo') if vimeoAddon not in [None, ""]: vimeoInstalled = True except: # We will get an exception if we can not find the Vimeo addon vimeoInstalled = False if not vimeoInstalled: # There is no Vimeo addon installed, so disable this option in settings log("VideoExtrasService: Disabling Vimeo support as addon not installed") Settings.disableVimeoSearchSupport()