From b37a3ca30ff41e41be2d76fd7de1f08a6984c5e2 Mon Sep 17 00:00:00 2001 From: Jackson Taylor Date: Mon, 15 Nov 2021 15:33:18 -0500 Subject: Remove unused functions from old script These were starting to just take up space, so I removed them. --- jamos | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'jamos') diff --git a/jamos b/jamos index 30b2d32..74a019f 100755 --- a/jamos +++ b/jamos @@ -4,9 +4,7 @@ import glob import json import music_tag import os -from os.path import isfile, join from pathlib import Path -import readline import sys import youtube_dl @@ -72,39 +70,6 @@ def format_youtube_date(date): return default -def sort_stuff(): - # read in all the files and directories to move - get_all_files() - - # setup tab completion - readline.parse_and_bind("tab: complete") - readline.set_completer(complete) - - in_directory = False - - # loop over all the files left and - print(len(FILES)) - for f in FILES: - in_directory = False - while not in_directory: - print(f) - directory = input('Enter directory: ') - if directory in DIRECTORIES: - move_file(directory, f) - in_directory = True - if directory == "refresh": - get_directories() - - -def complete(text, state): - for cmd in DIRECTORIES: - if cmd.startswith(text): - if not state: - return cmd - else: - state -= 1 - - def get_all_files(directory): things = glob.glob(os.path.join(directory, '*.mp3')) -- cgit v1.2.3