feat: improve prompt text

This commit is contained in:
Benex254
2024-09-22 21:39:19 +03:00
parent 8555edb521
commit c6910e5a1c
5 changed files with 22 additions and 22 deletions

View File

@@ -207,7 +207,7 @@ def download(
choices = list(search_results_.keys())
if config.use_fzf:
selected_anime_title = fzf.run(
choices, "Please Select title: ", "FastAnime"
choices, "Please Select title", "FastAnime"
)
else:
selected_anime_title = fuzzy_inquirer(
@@ -319,7 +319,7 @@ def download(
server_name = config.server
else:
if config.use_fzf:
server_name = fzf.run(servers_names, "Select an link: ")
server_name = fzf.run(servers_names, "Select an link")
else:
server_name = fuzzy_inquirer(
servers_names,

View File

@@ -293,7 +293,7 @@ def downloads(
else:
episode_title = fuzzy_inquirer(
downloaded_episodes,
"Enter Playlist Name: ",
"Enter Playlist Name",
)
if episode_title == "Back":
stream_anime()
@@ -333,7 +333,7 @@ def downloads(
else:
playlist_name = fuzzy_inquirer(
anime_downloads,
"Enter Playlist Name: ",
"Enter Playlist Name",
)
if playlist_name == "Exit":
exit_app()

View File

@@ -99,7 +99,7 @@ def search(config: "Config", anime_titles: str, episode_range: str):
preview = get_fzf_manga_preview(search_results)
if config.use_fzf:
search_result_manga_title = fzf.run(
choices, "Please Select title: ", preview=preview
choices, "Please Select title", preview=preview
)
elif config.use_rofi:
search_result_manga_title = Rofi.run(choices, "Please Select Title")
@@ -189,7 +189,7 @@ def search(config: "Config", anime_titles: str, episode_range: str):
choices = list(search_results_.keys())
if config.use_fzf:
search_result_manga_title = fzf.run(
choices, "Please Select title: ", "FastAnime"
choices, "Please Select title", "FastAnime"
)
elif config.use_rofi:
search_result_manga_title = Rofi.run(choices, "Please Select Title")
@@ -266,7 +266,7 @@ def search(config: "Config", anime_titles: str, episode_range: str):
if config.use_fzf:
episode = fzf.run(
choices,
"Select an episode: ",
"Select an episode",
header=search_result_manga_title,
)
elif config.use_rofi:
@@ -320,7 +320,7 @@ def search(config: "Config", anime_titles: str, episode_range: str):
server = config.server
else:
if config.use_fzf:
server = fzf.run(servers_names, "Select an link: ")
server = fzf.run(servers_names, "Select an link")
elif config.use_rofi:
server = Rofi.run(servers_names, "Select an link")
else:

View File

@@ -284,7 +284,7 @@ def media_player_controls(
# prompt for new quality
if config.use_fzf:
quality = fzf.run(
options, prompt="Select Quality:", header="Quality Options"
options, prompt="Select Quality", header="Quality Options"
)
elif config.use_rofi:
quality = Rofi.run(options, "Select Quality")
@@ -302,7 +302,7 @@ def media_player_controls(
options = ["sub", "dub"]
if config.use_fzf:
translation_type = fzf.run(
options, prompt="Select Translation Type: ", header="Lang Options"
options, prompt="Select Translation Type", header="Lang Options"
).lower()
elif config.use_rofi:
translation_type = Rofi.run(options, "Select Translation Type")
@@ -348,7 +348,7 @@ def media_player_controls(
if config.use_fzf:
action = fzf.run(
choices,
prompt="Select Action:",
prompt="Select Action",
)
elif config.use_rofi:
action = Rofi.run(choices, "Select Action")
@@ -447,7 +447,7 @@ def provider_anime_episode_servers_menu(
if config.use_fzf:
server_name = fzf.run(
choices,
prompt="Select Server: ",
prompt="Select Server",
header="Servers",
)
elif config.use_rofi:
@@ -734,7 +734,7 @@ def provider_anime_episodes_menu(
)
if config.use_fzf:
current_episode_number = fzf.run(
choices, prompt="Select Episode:", header=anime_title, preview=preview
choices, prompt="Select Episode", header=anime_title, preview=preview
)
elif config.use_rofi:
current_episode_number = Rofi.run(choices, "Select Episode")
@@ -892,7 +892,7 @@ def anime_provider_search_results_menu(
if config.use_fzf:
provider_anime_title = fzf.run(
choices,
prompt="Select Search Result:",
prompt="Select Search Result",
header="Anime Search Results",
)
@@ -967,7 +967,7 @@ def media_actions_menu(
media_actions_menu(config, fastanime_runtime_state)
else:
if not config.use_rofi:
print("no trailer available :confused:")
print("no trailer available :confused")
input("Enter to continue...")
else:
if not Rofi.confirm("No trailler found!!Enter to continue"):
@@ -1100,7 +1100,7 @@ def media_actions_menu(
options = ["Sub", "Dub"]
if config.use_fzf:
translation_type = fzf.run(
options, prompt="Select Translation Type:", header="Language Options"
options, prompt="Select Translation Type", header="Language Options"
)
elif config.use_rofi:
translation_type = Rofi.run(options, "Select Translation Type")
@@ -1129,10 +1129,10 @@ def media_actions_menu(
if config.use_fzf:
player = fzf.run(
options,
prompt="Select Player:",
prompt="Select Player",
)
elif config.use_rofi:
player = Rofi.run(options, "Select Player: ")
player = Rofi.run(options, "Select Player")
else:
player = fuzzy_inquirer(
options,
@@ -1269,7 +1269,7 @@ def media_actions_menu(
options = list(anime_sources.keys())
if config.use_fzf:
provider = fzf.run(
options, prompt="Select Translation Type:", header="Language Options"
options, prompt="Select Translation Type", header="Language Options"
)
elif config.use_rofi:
provider = Rofi.run(options, "Select Translation Type")
@@ -1403,14 +1403,14 @@ def anilist_results_menu(
preview = get_fzf_anime_preview(search_results, anime_data.keys())
selected_anime_title = fzf.run(
choices,
prompt="Select Anime: ",
prompt="Select Anime",
header="Search Results",
preview=preview,
)
else:
selected_anime_title = fzf.run(
choices,
prompt="Select Anime: ",
prompt="Select Anime",
header="Search Results",
)
elif config.use_rofi:

View File

@@ -25,7 +25,7 @@ class RofiApi:
args = [self.ROFI_EXECUTABLE]
if self.rofi_theme:
args.extend(["-no-config", "-theme", self.rofi_theme])
args.extend(["-p", prompt_text, "-i", "-show-icons", "-dmenu"])
args.extend(["-p", f"{prompt_text.title()}", "-i", "-show-icons", "-dmenu"])
result = subprocess.run(
args,
input=rofi_input,