From e4f9cd4bfae4b35d3aa1b3ddcf04e44df655d778 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Fri, 5 Nov 2021 14:04:52 +0100 Subject: [PATCH] Added option to check if any of providers have specific anime. --- adl.py | 7 +++++++ fzf.txt | 0 2 files changed, 7 insertions(+) delete mode 100644 fzf.txt diff --git a/adl.py b/adl.py index d05c4fe..ad18c12 100644 --- a/adl.py +++ b/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 diff --git a/fzf.txt b/fzf.txt deleted file mode 100644 index e69de29..0000000