Updates available actions

This commit is contained in:
Michael Swanson 2023-10-17 15:27:54 -07:00
parent 58a1f364f9
commit cce0f49bb8

View file

@ -21,8 +21,8 @@ def main():
print(f'Please run as admin: sudo python3 "{__file__}"') print(f'Please run as admin: sudo python3 "{__file__}"')
exit() exit()
print("WallGet Live Wallpaper Download Script") print("WallGet Live Wallpaper Download/Delete Script")
print("--------------------------------------\n") print("---------------------------------------------\n")
# Validate environment # Validate environment
if not os.path.isdir(IDLEASSETSD_PATH): if not os.path.isdir(IDLEASSETSD_PATH):
@ -55,7 +55,7 @@ def main():
print(f"{item + 1}. All") print(f"{item + 1}. All")
# Select category # Select category
category_index = as_int(input("\nCategory number to download? ")) category_index = as_int(input("\nCategory number? "))
if category_index < 1 or category_index > item + 1: if category_index < 1 or category_index > item + 1:
print("\nNo category selected.") print("\nNo category selected.")
exit() exit()
@ -64,7 +64,7 @@ def main():
) )
# Download or delete? # Download or delete?
action = input("\nDownload or delete? (d/x) ").strip().lower() action = input("\n(d)Download or (x)delete? (d/x) ").strip().lower()
if action != "d" and action != "x": if action != "d" and action != "x":
print("\nNo action selected.") print("\nNo action selected.")
exit() exit()