Don't strip all leading whitespaces

Sometimes, a folder can legitimately contain a leading whitespace which you don't want to strip.
This commit is contained in:
taziden 2016-10-25 18:05:40 +02:00 committed by GitHub
parent 85b32ea57d
commit 52d1b223f8

View File

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