mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
add ability to switch between anime and film on run without changing config
This commit is contained in:
parent
513a2df6ee
commit
fff7a25809
9
run.py
9
run.py
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user