mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 20:15:24 +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()
|
logger = Logger()
|
||||||
|
|
||||||
if not SWITCH_TO:
|
category = input("Insert category (0: Film/series, 1: Anime) : ")
|
||||||
|
|
||||||
|
if category == '0':
|
||||||
if not CLOSE_CONSOLE:
|
if not CLOSE_CONSOLE:
|
||||||
main()
|
main()
|
||||||
else:
|
else:
|
||||||
while 1:
|
while 1:
|
||||||
main()
|
main()
|
||||||
|
|
||||||
else:
|
elif category == '1':
|
||||||
if not CLOSE_CONSOLE:
|
if not CLOSE_CONSOLE:
|
||||||
main_switch()
|
main_switch()
|
||||||
else:
|
else:
|
||||||
while 1:
|
while 1:
|
||||||
main_switch()
|
main_switch()
|
||||||
|
else:
|
||||||
|
console.print("[red]Invalid category")
|
||||||
|
sys.exit(0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user