diff --git a/modules/config_manager.py b/modules/config_manager.py index dd5617a..1b7446a 100644 --- a/modules/config_manager.py +++ b/modules/config_manager.py @@ -74,7 +74,7 @@ def Writer(): } with open("config.json", "w") as cfg_file: json.dump(template, cfg_file, indent=6) - print(colored(f"{info} New config file generated! Configure it and restart the program or wait 5 seconds and the program will continue with the default values."), "green") + print(colored(f"{info} New config file generated! Configure it and restart the program or wait 5 seconds and the program will continue with the default values.", "green")) print("") sleep(5) return template diff --git a/modules/pixeldrain.py b/modules/pixeldrain.py index 21895c4..0dba704 100644 --- a/modules/pixeldrain.py +++ b/modules/pixeldrain.py @@ -26,8 +26,12 @@ def Uploader(file, proxy_list, user_agents, api_keys): calc_size = Site_Data_CLSS.size_unit_calc(site, file_size) + print(api_keys) + api_key = api_keys.get("apiKey", False) + print(api_key) + if api_key in (False, ""): raise Exception("Missing API Credentials?")