From 5fcc54c1b1a326b8bd6047449a7628af86513705 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Thu, 12 Aug 2021 10:49:41 +0200 Subject: [PATCH] Fixed formatting --- adl.py | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/adl.py b/adl.py index 44eac39..9029ac6 100644 --- a/adl.py +++ b/adl.py @@ -57,7 +57,7 @@ else: # print the version if args["version"]: - print("Py-adl version 0.1.1") + print("Py-adl version 0.2") sys.exit() # don't retrieve on startup @@ -288,7 +288,6 @@ def wanna_update_title_after_watch(title, episode, score): elif yn == "N" or yn == "n" or yn == "": break - # choose what to do with episode def choose_episode(): subprocess.call("cls", shell=True) @@ -315,28 +314,28 @@ def choose_episode_specific_show(): if not show == "": while True: - # choose what to do with the choosen anime - action = choose_episode_specific_show() - if action == "a" or action == "A" or action == "": - all_episodes(show) - exit_adl() - # custom range of episodes - elif action == "i" or action == "I": - custom_episode_range(show) - if wanna_continu_watch(): - continue - else: - exit_adl() - # watch custom episode - elif action == "c" or action == "C": - custom_episode(show) - if wanna_continu_watch(): - continue - else: - exit_adl() - # skip the anime - elif action == "s" or action == "S": - exit_adl() + # choose what to do with the choosen anime + action = choose_episode_specific_show() + if action == "a" or action == "A" or action == "": + all_episodes(show) + exit_adl() + # custom range of episodes + elif action == "i" or action == "I": + custom_episode_range(show) + if wanna_continu_watch(): + continue + else: + exit_adl() + # watch custom episode + elif action == "c" or action == "C": + custom_episode(show) + if wanna_continu_watch(): + continue + else: + exit_adl() + # skip the anime + elif action == "s" or action == "S": + exit_adl() else: # main loop while True: