Skip to content

Commit

Permalink
Fix issue with whitespace in config
Browse files Browse the repository at this point in the history
  • Loading branch information
Zak Nelson committed Dec 16, 2019
1 parent 58a17fb commit 9b16c63
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions FoobarMiniplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,15 @@ def load_config():
if "position" in line:
x_loc = line.find("=")+1
y_loc = line.find(",")+1
x = int(line[x_loc:y_loc-1])
y = int(line[y_loc:])
x = int(line[x_loc:y_loc-1].strip())
y = int(line[y_loc:].strip())
position = (x, y)
if "alpha" in line:
alpha = float(line[line.find("=")+1:])
alpha = float(line[line.find("=")+1:].strip())
if "col_fg" in line:
col_fg = line[line.find("#"):]
col_fg = line[line.find("#"):].strip()
if "col_bg" in line:
col_bg = line[line.find("#"):]
col_bg = line[line.find("#"):].strip()
config.close()
return

Expand Down

0 comments on commit 9b16c63

Please sign in to comment.