summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmpd/playlist.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpd/playlist.rb b/libmpd/playlist.rb
index 3a9c99a..cc5db9f 100644
--- a/libmpd/playlist.rb
+++ b/libmpd/playlist.rb
@@ -23,7 +23,7 @@ module MPDPlaylist
command = 'addid "%s"' % uri
command << ' %s' % position if position
- return send_request(command).scan(/(?!Id: )\d+/).first.to_i
+ return send_request(command).scan(/\d+/).first.to_i
end
# Clears the playlist.