summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Taylor <jackson@jacksontaylor.xyz>2021-11-15 15:33:18 -0500
committerJackson Taylor <jackson@jacksontaylor.xyz>2022-04-05 16:52:08 -0400
commitb37a3ca30ff41e41be2d76fd7de1f08a6984c5e2 (patch)
treeda248ed69f4ba05849bf4beeb060e96c1b27fe3c
parenta93bf72318c96c4fee369744f06283211e898c17 (diff)
Remove unused functions from old script
These were starting to just take up space, so I removed them.
-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'))