mirror of https://github.com/afkcodes/zspotify.git
Reprompt when no input given
This commit is contained in:
parent
630752cfa6
commit
509dbb1e45
|
@ -61,6 +61,8 @@ def client() -> None:
|
||||||
download_episode(episode)
|
download_episode(episode)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
search_text = ''
|
||||||
|
while len(search_text) == 0:
|
||||||
search_text = input('Enter search or URL: ')
|
search_text = input('Enter search or URL: ')
|
||||||
|
|
||||||
track_id, album_id, playlist_id, episode_id, show_id, artist_id = regex_input_for_urls(search_text)
|
track_id, album_id, playlist_id, episode_id, show_id, artist_id = regex_input_for_urls(search_text)
|
||||||
|
@ -149,6 +151,8 @@ def search(search_term):
|
||||||
if len(tracks) + len(albums) + len(playlists) == 0:
|
if len(tracks) + len(albums) + len(playlists) == 0:
|
||||||
print('NO RESULTS FOUND - EXITING...')
|
print('NO RESULTS FOUND - EXITING...')
|
||||||
else:
|
else:
|
||||||
|
selection = ''
|
||||||
|
while len(selection) == 0:
|
||||||
selection = str(input('SELECT ITEM(S) BY S.NO: '))
|
selection = str(input('SELECT ITEM(S) BY S.NO: '))
|
||||||
inputs = split_input(selection)
|
inputs = split_input(selection)
|
||||||
for pos in inputs:
|
for pos in inputs:
|
||||||
|
|
|
@ -43,6 +43,8 @@ class ZSpotify:
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
pass
|
pass
|
||||||
while True:
|
while True:
|
||||||
|
user_name = ''
|
||||||
|
while len(user_name) == 0:
|
||||||
user_name = input('Username: ')
|
user_name = input('Username: ')
|
||||||
password = getpass()
|
password = getpass()
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue