From b2bc7a08e5294c80456892bcc677ff344795c3dd Mon Sep 17 00:00:00 2001 From: junioralive Date: Sun, 11 Aug 2024 12:01:59 +0530 Subject: [PATCH] Bug Fixes --- .gitignore | 3 +++ setup.py | 3 +-- spycli/utils/helper/getapi.py | 16 +++------------- 3 files changed, 7 insertions(+), 15 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..69dfac3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/build +/dist +/spycli.egg-info diff --git a/setup.py b/setup.py index 71653fa..7dbdc2e 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='spycli', - version='1.0.0', + version='1.0.1', author='junioralive', author_email='support@junioralive.in', description='A cli tool to browse and watch Movie/TV Shows/Anime/Kdrama/Cdráma/MORE', @@ -16,7 +16,6 @@ 'pyfzf', 'beautifulsoup4', 'packaging', - 'cryptography', ], entry_points={ 'console_scripts': [ diff --git a/spycli/utils/helper/getapi.py b/spycli/utils/helper/getapi.py index 78bfa4a..281be7a 100644 --- a/spycli/utils/helper/getapi.py +++ b/spycli/utils/helper/getapi.py @@ -1,10 +1,6 @@ -from cryptography.fernet import Fernet import requests import base64 -key = b'3sOYMy7Ybm3oJHNk71R6W8iVg3NcRin0tm6I7KKYE9k=' -cipher = Fernet(key) - def fetch_api_key(): url = "https://api.github.com/repos/junioralive/spycli-api/contents/keys/apikey.txt" @@ -19,14 +15,8 @@ def fetch_api_key(): return None def fetch_api(): - encrypted_url = fetch_api_key() - if encrypted_url is None: + api_url = fetch_api_key() + if api_url is None: return None - try: - decrypted_bytes = cipher.decrypt(encrypted_url.encode()) - decrypted_url = decrypted_bytes.decode() - return decrypted_url - except Exception as e: - print(f"[!] Error during decryption: {e}") - return None + return api_url