self.msl_data_path = xbmc.translatePath('special://profile/addon_data/service.msl').decode('utf-8') + '/'
self.verb_log = self.addon.getSetting('logging') == 'true'
self.default_fanart = self.addon.getAddonInfo('fanart')
self.msl_data_path = xbmc.translatePath('special://profile/addon_data/service.msl').decode('utf-8') + '/'
self.verb_log = self.addon.getSetting('logging') == 'true'
self.default_fanart = self.addon.getAddonInfo('fanart')
# no cache setup yet, create one
if len(cached_items) < 1:
# no cache setup yet, create one
if len(cached_items) < 1:
def has_cached_item (self, cache_id):
"""Checks if the requested item is in memory cache
def has_cached_item (self, cache_id):
"""Checks if the requested item is in memory cache
return cache_id in cached_items.keys()
def get_cached_item (self, cache_id):
return cache_id in cached_items.keys()
def get_cached_item (self, cache_id):
def build_profiles_listing (self, profiles, action, build_url):
"""Builds the profiles list Kodi screen
def build_profiles_listing (self, profiles, action, build_url):
"""Builds the profiles list Kodi screen
preselected_list_item = idx if item else None
preselected_list_item = idx + 1 if self.get_main_menu_selection() == 'search' else preselected_list_item
if preselected_list_item != None:
preselected_list_item = idx if item else None
preselected_list_item = idx + 1 if self.get_main_menu_selection() == 'search' else preselected_list_item
if preselected_list_item != None:
- xbmc.executebuiltin('ActivateWindowAndFocus(%s, %s)' % (str(self.win.getFocusId()), str(preselected_list_item)))
+ xbmc.executebuiltin('ActivateWindowAndFocus(%s, %s)' % (str(xbmcgui.Window(xbmcgui.getCurrentWindowId()).getFocusId()), str(preselected_list_item)))
return True
def build_video_listing (self, video_list, actions, type, build_url):
return True
def build_video_listing (self, video_list, actions, type, build_url):