elif action == 'download': import json from resources.lib.modules import sources from resources.lib.modules import downloader try: downloader.download( name, image, sources.sources().sourcesResolve(json.loads(source)[0], True)) except: pass elif action == 'docuHeaven': from resources.lib.indexers import docu if not docu_category == None: docu.documentary().docu_list(docu_category) elif not docu_watch == None: docu.documentary().docu_play(docu_watch) else: docu.documentary().root() elif action == 'sectionItem': pass # Placeholder. This is a non-clickable menu item for notes, etc. elif action == 'play': from resources.lib.modules import sources sources.sources().play(title, year, imdb, tvdb, season, episode, tvshowtitle, premiered, meta, select) elif action == 'addItem': from resources.lib.modules import sources
elif podcast_episode is not None: podcast.podcast().podcast_play(action, podcast_episode) else: podcast.podcast().pco_root() elif action == 'boxsetNavigator': from resources.lib.indexers import boxsets boxsets.boxsets().get(menu_file, menu_section) elif action == 'boxsetList': from resources.lib.indexers import boxsets boxsets.boxsets().boxsetlist(url, list_id) elif action == 'docuNavigator': from resources.lib.indexers import docu docu.documentary().root() elif action == 'docuTDNavigator': from resources.lib.indexers import docu if docu_category is not None: docu.topdocs().get(docu_category) elif docu_watch is not None: docu.topdocs().docu_play(docu_watch) else: docu.topdocs().get() elif action == 'docuDHNavigator': from resources.lib.indexers import docu if docu_category is not None: docu.docuheaven().get(docu_category) elif docu_watch is not None: