mirror of
https://github.com/ClaytonWWilson/Scraper-for-theTVDB.com.git
synced 2025-12-15 17:28:46 +00:00
Added skeleton menu for launcher.py
This commit is contained in:
parent
147a2220cd
commit
5b53396335
51
launcher.py
51
launcher.py
@ -1,8 +1,43 @@
|
|||||||
# this will be the launcher for the project
|
import os
|
||||||
print("1. Search theTVDB.com")
|
def clear_screen():
|
||||||
print("2. Clear download folders")
|
IS_WINDOWS = os.name == "nt"
|
||||||
print("3. Change login")
|
if IS_WINDOWS:
|
||||||
print("4. Refresh API Token")
|
os.system("cls")
|
||||||
print("5. Install Requirements")
|
else:
|
||||||
print("6. Check for updates")
|
os.system("clear")
|
||||||
print("7. Exit")
|
|
||||||
|
def user_choice():
|
||||||
|
return input("> ").lower().strip()
|
||||||
|
|
||||||
|
|
||||||
|
while True:
|
||||||
|
print("1. Search theTVDB.com")
|
||||||
|
print("2. Clear download folders")
|
||||||
|
print("3. Change login")
|
||||||
|
print("4. Refresh API Token")
|
||||||
|
print("5. Install Requirements")
|
||||||
|
print("6. Check for updates")
|
||||||
|
print("7. Exit")
|
||||||
|
|
||||||
|
choice = user_choice()
|
||||||
|
|
||||||
|
if choice == "1":
|
||||||
|
print("Search")
|
||||||
|
break
|
||||||
|
elif choice == "2":
|
||||||
|
print("Clear download")
|
||||||
|
break
|
||||||
|
elif choice == "3":
|
||||||
|
print("Change login")
|
||||||
|
break
|
||||||
|
elif choice == "4":
|
||||||
|
print("Refresh token")
|
||||||
|
break
|
||||||
|
elif choice == "5":
|
||||||
|
print("install requirements")
|
||||||
|
break
|
||||||
|
elif choice == "6":
|
||||||
|
print("update")
|
||||||
|
break
|
||||||
|
elif choice == "7":
|
||||||
|
print("Exit")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user