summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmpd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpd.rb b/libmpd.rb
index 2240c9b..88df927 100644
--- a/libmpd.rb
+++ b/libmpd.rb
@@ -77,7 +77,7 @@ class MPD
hash = Hash.new
str.split("\n").each do |line|
- field, value = line.split(': ')
+ field, value = line.split(': ', 2)
hash[field.downcase.to_sym] = value
end