diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-08-01 14:41:39 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-08-01 14:41:39 -0700 |
commit | 3299b865f3876030cd4b34fa364fad0a64504baf (patch) | |
tree | 6081f3adc06fa55d8c8f47f53ab043fa9499ef68 /libmpd | |
parent | 5bbea615ba2d5efe3abf7a575156f93efeeeb9a8 (diff) | |
download | ruby-libmpd-3299b865f3876030cd4b34fa364fad0a64504baf.tar.gz ruby-libmpd-3299b865f3876030cd4b34fa364fad0a64504baf.tar.xz |
Fix addid regular expression.
Diffstat (limited to 'libmpd')
-rw-r--r-- | libmpd/playlist.rb | 2 |
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. |