Skip to content

Commit

Permalink
remove whitespace error in custom schemes (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Badgie authored Mar 10, 2020
1 parent cdf8428 commit 5ab611d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spotirec.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ def print_choices(data=None, prompt=True, sort=False) -> str:
'include [default: top 5]:\n') or '0 1 2 3 4'
# If seed type is genres, simply parse the seed, else return the input for further processing
if 'genres' in rec.seed_type:
parse_seed_info([data[int(x)] for x in input_string.split(' ')])
parse_seed_info([data[int(x)] for x in input_string.strip(' ').split(' ')])
else:
return input_string
return input_string.strip(' ')


def print_artists_or_tracks(data: json, prompt=True):
Expand Down Expand Up @@ -825,7 +825,7 @@ def parse():
if not user_input:
print('Please enter 1-5 seeds')
exit(1)
parse_seed_info(user_input)
parse_seed_info(user_input.strip(' '))
else:
print(f'Basing recommendations off your top {args.n} genres')
add_top_genres_seed(args.n)
Expand Down

0 comments on commit 5ab611d

Please sign in to comment.