def main(): input_list_path = "config\\to_sort.txt" output_list_path = "config\\artists_at_top.txt" input_list = derpibooru_dl.import_list(input_list_path) artists_at_top_list = artists_at_top(input_list) derpibooru_dl.append_list(artists_at_top_list, output_list_path, initial_text="# Artists at the top.\n", overwrite=True)
def main(): settings = settings_handler("config\\derpibooru_deduplicate_config.cfg") if settings.use_tag_list is True: # Load todo list tag_list = derpibooru_dl.import_list(settings.input_list_path) elif settings.use_tag_list is False: # Generate list of all folders in download folder tag_list = list_subfolders(settings.downloads_folder) process_folders(settings,tag_list)
def main(): settings = settings_handler( os.path.join("config", "derpibooru_deduplicate_config.cfg")) if settings.use_tag_list is True: # Load todo list tag_list = derpibooru_dl.import_list(settings.input_list_path) elif settings.use_tag_list is False: # Generate list of all folders in download folder tag_list = list_subfolders(settings.downloads_folder) process_folders(settings, tag_list)
def copy_tag_list(settings): # Read tag list from config folder user_input_list = derpibooru_dl.import_list(listfilename=settings.tag_splitter_tag_list_path) # Get database of tags tag_db_dict = get_tag_db(settings) # Iterate through user input list counter = 0 for tag in user_input_list: tag += u""# convert input to unicode counter += 1 logging.debug("Now copying tag "+str(counter)+" of "+str(len(user_input_list))+":"+tag) tag_db_dict = copy_tag(settings,tag_db_dict,tag) logging.info("Done copying tags") pass