From aa5e792975369f01a65aee86acf1d1420b6318b6 Mon Sep 17 00:00:00 2001 From: Cohvir <63691557+Cohvir@users.noreply.github.com> Date: Tue, 5 Mar 2024 14:23:53 +0100 Subject: [PATCH] style(spell): spelling corrected --- Src/Api/page.py | 2 +- update.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/Api/page.py b/Src/Api/page.py index 700b5fa..3ff0f95 100644 --- a/Src/Api/page.py +++ b/Src/Api/page.py @@ -12,7 +12,7 @@ from bs4 import BeautifulSoup def domain_version(): domain_req = requests.get("https://api.telegra.ph/getPage/Link-Aggiornato-StreamingCommunity-01-17") domain = domain_req.json()['result']['description'].split(".")[1] - console.print("[green]Get rules ...") + console.print("[green]Getting rules...") console.print(f"[blue]Test domain [white]=> [red]{domain}") site_url = f"https://streamingcommunity.{domain}" diff --git a/update.py b/update.py index 455ef57..e6789a9 100644 --- a/update.py +++ b/update.py @@ -42,7 +42,7 @@ def keep_specific_items(directory, keep_folder, keep_file): os.remove(item_path) except PermissionError as pe: - print(f"PermissionError: {pe}. Check permissions and try running the script as administrator.") + print(f"PermissionError: {pe}. Check permissions and try running the script with admin privileges.") except Exception as e: print(f"Error: {e}") @@ -51,13 +51,13 @@ def download_and_extract_latest_commit(author, repo_name): # Get the latest commit information using GitHub API api_url = f'https://api.github.com/repos/{author}/{repo_name}/commits?per_page=1' response = requests.get(api_url) - console.log("[green]Make req repo github") + console.log("[green]Making a request to GitHub repository...") if response.status_code == 200: commit_info = response.json()[0] commit_sha = commit_info['sha'] zipball_url = f'https://github.com/{author}/{repo_name}/archive/{commit_sha}.zip' - console.log("[green]Get zip file from repo") + console.log("[green]Getting zip file from repository...") # Download the zipball response = requests.get(zipball_url)