From 3299b865f3876030cd4b34fa364fad0a64504baf Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sat, 1 Aug 2009 14:41:39 -0700 Subject: Fix addid regular expression. --- libmpd/playlist.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmpd') 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. -- cgit v1.2.3-70-g09d2