Added option to check if any of providers have specific anime.
This commit is contained in:
parent
7647c04aba
commit
e4f9cd4bfa
7
adl.py
7
adl.py
@ -257,6 +257,8 @@ def argument_parser():
|
||||
help="Download instead of streaming")
|
||||
ap.add_argument("-t", "--test-providers", required=False, type=bool, nargs='?', const=True, default=False,
|
||||
help="Check the state of possible providers")
|
||||
ap.add_argument("-c", "--check-show", required=False,
|
||||
help="Check what provider has that one anime you wan't to watch. Ex: \033[0;36m$adl -c 'gegege 2018' -n \033[0m")
|
||||
ap.add_argument("-v", "--version", required=False, nargs='?', const=True,
|
||||
help="Display version and exit")
|
||||
|
||||
@ -274,6 +276,11 @@ def argument_parser():
|
||||
subprocess.run("anime test")
|
||||
sys.exit()
|
||||
|
||||
# check if anime exists in any of the providers
|
||||
if args["check_show"]:
|
||||
subprocess.run("anime test '" + str(args["check_show"]) + "'")
|
||||
sys.exit()
|
||||
|
||||
# get player
|
||||
if args["player"]:
|
||||
player = str(args["player"]) # get player from user
|
||||
|
Loading…
Reference in New Issue
Block a user