Fixed formatting

This commit is contained in:
CronyAkatsuki 2021-08-12 10:49:41 +02:00
parent a37e438210
commit 5fcc54c1b1

47
adl.py
View File

@ -57,7 +57,7 @@ else:
# print the version # print the version
if args["version"]: if args["version"]:
print("Py-adl version 0.1.1") print("Py-adl version 0.2")
sys.exit() sys.exit()
# don't retrieve on startup # 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 == "": elif yn == "N" or yn == "n" or yn == "":
break break
# choose what to do with episode # choose what to do with episode
def choose_episode(): def choose_episode():
subprocess.call("cls", shell=True) subprocess.call("cls", shell=True)
@ -315,28 +314,28 @@ def choose_episode_specific_show():
if not show == "": if not show == "":
while True: while True:
# choose what to do with the choosen anime # choose what to do with the choosen anime
action = choose_episode_specific_show() action = choose_episode_specific_show()
if action == "a" or action == "A" or action == "": if action == "a" or action == "A" or action == "":
all_episodes(show) all_episodes(show)
exit_adl() exit_adl()
# custom range of episodes # custom range of episodes
elif action == "i" or action == "I": elif action == "i" or action == "I":
custom_episode_range(show) custom_episode_range(show)
if wanna_continu_watch(): if wanna_continu_watch():
continue continue
else: else:
exit_adl() exit_adl()
# watch custom episode # watch custom episode
elif action == "c" or action == "C": elif action == "c" or action == "C":
custom_episode(show) custom_episode(show)
if wanna_continu_watch(): if wanna_continu_watch():
continue continue
else: else:
exit_adl() exit_adl()
# skip the anime # skip the anime
elif action == "s" or action == "S": elif action == "s" or action == "S":
exit_adl() exit_adl()
else: else:
# main loop # main loop
while True: while True: