def country_select(): line_break() prompt(['1: Top Artists', '2: Top Tracks']) selection = int(input()) if selection == 1: country_top_artists() elif selection == 2: country_top_tracks() else: print("Invalid selection.") country_select()
def global_select(): line_break() prompt(['1: Top Artists', '2: Top Tracks', '3: Top Tags']) selection = int(input()) if selection == 1: global_top_artists() elif selection == 2: global_top_tracks() elif selection == 3: global_top_tags() else: print("Invalid selection.") global_select()
def album_select(): line_break() prompt(['1: Description', '2: Tags', '3: Search albums']) selection = int(input()) line_break() if selection == 1: description() elif selection == 2: tags() elif selection == 3: search() else: print("Invalid selection.") album_select()
def track_select(): line_break() prompt(['1: Description', '2: Similar Songs', '3: Tags', '4: Search']) selection = int(input()) line_break() if selection == 1: description() elif selection == 2: similar_songs() elif selection == 3: tags() elif selection == 4: search() else: print("Invalid selection.") track_select()
def artist_select(): line_break() prompt(['1: Description', '2: Albums', '3: Tracks', '4: Tags', '5: Similar Artists', '6: Search']) selection = int(input()) line_break() if selection == 1: description() elif selection == 2: albums() elif selection == 3: tracks() elif selection == 4: tags() elif selection == 5: similar_artists() elif selection == 6: search() else: print("Invalid selection.") artist_select()
def tag_select(): line_break() prompt([ '1: Description', '2: Top Albums', '3: Top Artists', '4: Top Tags', '5: Top Tracks' ]) selection = int(input()) line_break() if selection == 1: description() elif selection == 2: top_albums() elif selection == 3: top_artists() elif selection == 4: top_tags() elif selection == 5: top_tracks() else: print("Invalid selection.") tag_select()