diff options
Diffstat (limited to 'jamos')
-rwxr-xr-x | jamos | 35 |
1 files changed, 0 insertions, 35 deletions
@@ -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')) |