add ability to switch between anime and film on run without changing config

This commit is contained in:
Francesco Grazioso 2024-04-12 14:08:27 +02:00
parent 513a2df6ee
commit fff7a25809

9
run.py
View File

@ -173,16 +173,21 @@ if __name__ == '__main__':
logger = Logger()
if not SWITCH_TO:
category = input("Insert category (0: Film/series, 1: Anime) : ")
if category == '0':
if not CLOSE_CONSOLE:
main()
else:
while 1:
main()
else:
elif category == '1':
if not CLOSE_CONSOLE:
main_switch()
else:
while 1:
main_switch()
else:
console.print("[red]Invalid category")
sys.exit(0)