def fileurlchoices(): if (share): print_file_list(-1, True) fileurl = raw_input("Which file to get URL for? (give the number)") if (in_list(fileurl, get_item_name_list("file"))): urls = get_item_url(uni_get_name(fileurl, "id", "file"), "file") else: urls = get_item_url(get_file_id(fileurl), "file") print("Download link: " + urls[0]) if (googl_enabled): print("\t" + googl.shorten_url(urls[0])) elif (bitly_enabled): print("\t" + bitly.shorten_url(urls[0])) print("Direct Download link: " + urls[1]) if (googl_enabled): print("\t" + googl.shorten_url(urls[1])) elif (bitly_enabled): print("\t" + bitly.shorten_url(urls[1])) else: print("Read the readme for info on how to set this function up")
def fileurlchoices(): if(share): print_file_list(-1, True) fileurl = raw_input("Which file to get URL for? (give the number)") if(in_list(fileurl, get_item_name_list("file"))): urls = get_item_url(uni_get_name(fileurl, "id", "file"), "file") else: urls = get_item_url(get_file_id(fileurl), "file") print("Download link: "+urls[0]) if(googl_enabled): print("\t"+googl.shorten_url(urls[0])) elif(bitly_enabled): print("\t"+bitly.shorten_url(urls[0])) print("Direct Download link: "+urls[1]) if(googl_enabled): print("\t"+googl.shorten_url(urls[1])) elif(bitly_enabled): print("\t"+bitly.shorten_url(urls[1])) else: print("Read the readme for info on how to set this function up")
def folder_url_choices(): if(share): print_folder_list(-1, True) folderid = raw_input("Folder to make new link for: ") if(in_list(folderid, get_item_name_list("folder"))): urls = get_item_url(uni_get_name(folderid, "id", "folder")) else: urls = get_item_url(get_folder_id(folderid), "folder") print("Download URL: "+urls[0]) if(googl_enabled): print("\t"+googl.shorten_url(urls[0])) elif(bitly_enabled): print("\t"+bitly.shorten_url(urls[0])) print("Direct(?) Download URL: "+urls[1]+ " (Pro account might be required)" ) if(googl_enabled): print("\t"+googl.shorten_url(urls[1])) elif(bitly_enabled): print("\t"+bitly.shorten_url(urls[1])) else: print("Read the readme for info on how to set this function up")
def folder_url_choices(): if (share): print_folder_list(-1, True) folderid = raw_input("Folder to make new link for: ") if (in_list(folderid, get_item_name_list("folder"))): urls = get_item_url(uni_get_name(folderid, "id", "folder")) else: urls = get_item_url(get_folder_id(folderid), "folder") print("Download URL: " + urls[0]) if (googl_enabled): print("\t" + googl.shorten_url(urls[0])) elif (bitly_enabled): print("\t" + bitly.shorten_url(urls[0])) print("Direct(?) Download URL: " + urls[1] + " (Pro account might be required)") if (googl_enabled): print("\t" + googl.shorten_url(urls[1])) elif (bitly_enabled): print("\t" + bitly.shorten_url(urls[1])) else: print("Read the readme for info on how to set this function up")