mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
style: uniformity
This commit is contained in:
parent
f2d27270a7
commit
3f716739c4
@ -154,9 +154,9 @@ def main_dw_tv(tv_id, tv_name, version, domain):
|
||||
token = get_token(tv_id, domain)
|
||||
|
||||
num_season_find = get_info_tv(tv_id, tv_name, version, domain)
|
||||
console.print("\n[green]Insert season [red]number [yellow]or [red](*) [green]to download all seasons [yellow]or [red][1-2] [green]for a range of seasons")
|
||||
console.print("\n[green]Insert season [red]number[green], or [red](*) [green]to download all seasons, or [red][1-2] [green]for a range of seasons")
|
||||
console.print(f"\n[blue]Season(s) found: [red]{num_season_find}")
|
||||
season_select = str(msg.ask("\n[green]Insert season(s) number: "))
|
||||
season_select = str(msg.ask("\n[green]Insert which season(s) number you'd like to download"))
|
||||
if "[" in season_select:
|
||||
start, end = map(int, season_select[1:-1].split('-'))
|
||||
result = list(range(start, end + 1))
|
||||
@ -172,7 +172,7 @@ def main_dw_tv(tv_id, tv_name, version, domain):
|
||||
|
||||
for ep in eps:
|
||||
console.print(f"[green]Episode: [blue]{ep['n']} [green]=> [purple]{ep['name']}")
|
||||
index_ep_select = str(msg.ask("\n[green]Insert episode [yellow]number [green]or [red](*) [green]to download all episodes or [red][1-2] [green]for a range of episodes: "))
|
||||
index_ep_select = str(msg.ask("\n[green]Insert episode [blue]number[green], or [red](*) [green]to download all episodes, or [red][1-2] [green]for a range of episodes"))
|
||||
|
||||
# Download range []
|
||||
if "[" in index_ep_select:
|
||||
|
@ -19,7 +19,7 @@ def get_install_version():
|
||||
return about['__version__']
|
||||
|
||||
def main_update():
|
||||
console.print("[green]Checking github version ...")
|
||||
console.print("[green]Checking GitHub version ...")
|
||||
|
||||
json = requests.get(f"https://api.github.com/repos/{repo_user}/{repo_name}/releases").json()[0]
|
||||
stargazers_count = requests.get(f"https://api.github.com/repos/{repo_user}/{repo_name}").json()['stargazers_count']
|
||||
@ -38,7 +38,7 @@ def main_update():
|
||||
|
||||
else:
|
||||
console.print(f"[red]=> Everything is up to date")
|
||||
console.print(f"[red]=> Latest version: [yellow]{json['name']}")
|
||||
console.print(f"[red]=> You're on Version: [yellow]{json['name']}")
|
||||
|
||||
|
||||
print("\n")
|
||||
|
4
run.py
4
run.py
@ -43,9 +43,9 @@ def main():
|
||||
if len(db_title) != 0:
|
||||
console.print(f"\n[blue]Total result: {len(db_title)}")
|
||||
console.print(
|
||||
"\n[green]Insert [yellow]INDEX [red]number [green]or [red][1-2] [green]for a range of movies/tv series or [red][1,3,5] [green]to select discontinued movie/tv series"
|
||||
"\n[green]Insert [yellow]INDEX [red]number[green], or [red][1-2] [green]for a range of movies/tv series, or [red][1,3,5] [green]to select discontinued movie/tv series"
|
||||
)
|
||||
console.print("\n[red]In case of a TV Series you will choose seasons and episodes to download")
|
||||
console.print("\n[red]In case of a TV Series you will also choose seasons and episodes to download")
|
||||
index_select = str(msg.ask("\n[blue]Select [yellow]INDEX [blue]to download"))
|
||||
if index_select.isnumeric():
|
||||
index_select = int(index_select)
|
||||
|
Loading…
x
Reference in New Issue
Block a user