mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
style(spell): spelling corrected
This commit is contained in:
parent
3bb5c81e78
commit
aa5e792975
@ -12,7 +12,7 @@ from bs4 import BeautifulSoup
|
|||||||
def domain_version():
|
def domain_version():
|
||||||
domain_req = requests.get("https://api.telegra.ph/getPage/Link-Aggiornato-StreamingCommunity-01-17")
|
domain_req = requests.get("https://api.telegra.ph/getPage/Link-Aggiornato-StreamingCommunity-01-17")
|
||||||
domain = domain_req.json()['result']['description'].split(".")[1]
|
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}")
|
console.print(f"[blue]Test domain [white]=> [red]{domain}")
|
||||||
site_url = f"https://streamingcommunity.{domain}"
|
site_url = f"https://streamingcommunity.{domain}"
|
||||||
|
@ -42,7 +42,7 @@ def keep_specific_items(directory, keep_folder, keep_file):
|
|||||||
os.remove(item_path)
|
os.remove(item_path)
|
||||||
|
|
||||||
except PermissionError as pe:
|
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:
|
except Exception as e:
|
||||||
print(f"Error: {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
|
# Get the latest commit information using GitHub API
|
||||||
api_url = f'https://api.github.com/repos/{author}/{repo_name}/commits?per_page=1'
|
api_url = f'https://api.github.com/repos/{author}/{repo_name}/commits?per_page=1'
|
||||||
response = requests.get(api_url)
|
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:
|
if response.status_code == 200:
|
||||||
commit_info = response.json()[0]
|
commit_info = response.json()[0]
|
||||||
commit_sha = commit_info['sha']
|
commit_sha = commit_info['sha']
|
||||||
zipball_url = f'https://github.com/{author}/{repo_name}/archive/{commit_sha}.zip'
|
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
|
# Download the zipball
|
||||||
response = requests.get(zipball_url)
|
response = requests.get(zipball_url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user