summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjamos35
1 files changed, 0 insertions, 35 deletions
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'))