def download_trailer(trailer_url, title, year=''): path = kodi.get_setting('download_path') while not path: ret = xbmcgui.Dialog().yesno(kodi.get_name(), i18n('no_download_path'), nolabel=i18n('cancel'), yeslabel=i18n('set_it_now')) if not ret: return kodi.show_settings() path = kodi.get_setting('download_path') trailer_url = local_utils.resolve_trailer(trailer_url) file_name = utils.create_legal_filename(title, year) utils.download_media(trailer_url, path, file_name, translations)
def showSettings(): kodi.show_settings() kodi.refresh_container()
def main_route(content_type=''): kodi.show_settings()