def Download(language, hash, filename): subtitle_list = [] ## Cleanup temp dir, we recomend you download/unzip your subs in temp folder and ## pass that to XBMC to copy and activate if xbmcvfs.exists(__temp__): shutil.rmtree(__temp__) xbmcvfs.mkdirs(__temp__) filename = os.path.join(__temp__, filename + ".zip") napiHelper = NapiProjektHelper(filename, hash) filename = napiHelper.download(language) subtitle_list.append(filename) # this can be url, local path or network path. return subtitle_list