replace litterals and cross platform cls

This commit is contained in:
karl.hudgell 2022-02-23 08:47:31 +00:00
parent b3b02e040c
commit bc957b0607
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ except AttributeError:
def gogodownloader(config):
CURRENT_DOMAIN = config["CurrentGoGoAnimeDomain"]
os.system("cls")
os.system("cls" if os.name == "nt" else "clear")
while True:
print(
f""" {Fore.LIGHTBLUE_EX}
@ -166,7 +166,7 @@ def gogodownloader(config):
use_again = input(f"{IN}Do you want to use the app again? (y|n) > ").lower()
if use_again == "y":
os.system("cls")
os.system("cls" if os.name == "nt" else "clear")
else:
break

View File

@ -126,7 +126,7 @@ class gogoanime:
)
soup = BeautifulSoup(page.content, "html.parser")
loginCheck = soup(text=re.compile("Logout"))
if len(loginCheck) is 0:
if len(loginCheck) == 0:
raise Exception(
"User is not logged in, make sure account has been activated"
)