Ejemplo n.º 1
0
def route_download_public(url,ofolder,fname,xcimode="Untrimmed",zmode="Compressed",file=None):
	if (fname.endswith('.xcz') or fname.endswith('.nsz')) and zmode=="Uncompressed":	
		decompress(url,ofolder,file=file)		
	if fname.endswith('.xci') and xcimode=="Trimmed":
		Public.download(url,ofolder,trimm=True,file=file)	
	elif fname.endswith('.xci') and xcimode=="Supertrimmed":		
		supertrimm(url,ofolder,file=file)
	else:
		Public.download(url,ofolder,trimm=False,file=file)			
Ejemplo n.º 2
0
def route_download(path,TD,ofolder,xcimode="Untrimmed",zmode="Compressed"):
	if (path.endswith('.xcz') or path.endswith('.nsz')) and zmode=="Uncompressed":	
		decompress(path,ofolder,TD=TD)		
	if path.endswith('.xci') and xcimode=="Trimmed":
		Private.download(path,ofolder,TD=TD,trimm=True)	
	elif path.endswith('.xci') and xcimode=="Supertrimmed":		
		supertrimm(path,ofolder,TD=TD)
	else:
		Private.download(path,ofolder,TD=TD,trimm=False)			
Ejemplo n.º 3
0
def folderpicker(path, ofolder=None, TD=None, filter=None, mode='download'):
    pathlist = search_folder(path, TD, pick=True, Print=False, filter=filter)
    counter = len(pathlist)
    for path in pathlist:
        if mode == 'download':
            download(path, ofolder, TD)
        elif mode == 'get_cnmt_data':
            DriveTools.get_cnmt_data(path, TD)
        elif mode == 'decompress':
            from Drive.Decompress import decompress
            decompress(path, ofolder, TD)
        elif mode == 'supertrimm':
            from Drive.XciTools import supertrimm
            supertrimm(path, ofolder, TD)
        elif mode == 'read_cnmt':
            from Drive.Info import read_cnmt
            read_cnmt(path, TD)
        counter -= 1
        if counter > 0:
            print("Still {} files to download".format(str(counter)))