Merge pull request #7 from taziden/patch-1

Don't strip all leading whitespaces
This commit is contained in:
Lucas Verney 2016-10-25 13:54:34 -04:00 committed by GitHub
commit ffc90541c6

View File

@ -139,7 +139,7 @@ def main(queue_length):
# Take the last song from current playlist and iterate from it # Take the last song from current playlist and iterate from it
playlist = client.playlist() playlist = client.playlist()
if len(playlist) > 0: if len(playlist) > 0:
current_song = playlist[-1].replace("file:", "").strip() current_song = playlist[-1].replace("file: ", "").rstrip()
# If current playlist is empty # If current playlist is empty
else: else:
# Add a random song to start with # Add a random song to start with