Skip to content

Commit

Permalink
add time before opening the browser
Browse files Browse the repository at this point in the history
  • Loading branch information
prochy-exe committed Dec 30, 2024
1 parent e3e2c08 commit eb498fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alfetcher/al_config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from gevent.pywsgi import WSGIServer
from urllib.parse import parse_qs
from .utils import utils_save_json
from time import sleep

def get_ip_address():
try:
Expand Down Expand Up @@ -125,8 +126,9 @@ def generate_api_key(client_id, client_secret):
client_id = get_input(gen_please("Anilist API Client ID","https://anilist.co/settings/developer"))
client_secret = get_input(gen_please("Anilist API Client Secret",f"https://anilist.co/settings/client/{client_id}"))
else:
webbrowser.open("https://anilist.co/settings/developer", 0)
client_id = get_input(gen_please("Anilist API Client ID","Paste the Client ID"))
sleep(1)
webbrowser.open("https://anilist.co/settings/developer", 0)
client_secret = get_input(gen_please("Anilist API Client Secret","Paste the Client Secret"))
config_dict['anilist_user_token'] = generate_api_key(client_id, client_secret)
if not print_only:
Expand Down

0 comments on commit eb498fb

Please sign in to comment.