vkpd 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vkpd/cli.rb +3 -3
- data/lib/vkpd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2749cba47e4b5d147900f80a4444ad91a68daa76
|
4
|
+
data.tar.gz: f684c2764299895d63aba37a28c309a0be0dc786
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13b62f0ae4d8dc722b0dd6b4e7ad6e9698f5e4eca17452fdb4519caa22088383b779ecf0a48cc53bed604dcb03f4c7b28a04cec10fae4eb09d0a4d2e438bc505
|
7
|
+
data.tar.gz: 7ba13ad19e9c518684cd16ee7652dc21ec3c6d70a27576a24be151c62ed8b485308b69eb929c0ffcaff3fa102614da635940cb22da7075ec5be325f0fdec0194
|
data/lib/vkpd/cli.rb
CHANGED
@@ -2,8 +2,6 @@ module Vkpd
|
|
2
2
|
class CLI
|
3
3
|
# main CLI method
|
4
4
|
def main
|
5
|
-
mpd = MPD.new 'localhost'
|
6
|
-
mpd.connect
|
7
5
|
method = "audio.search"
|
8
6
|
params = {}
|
9
7
|
do_clear = true
|
@@ -80,6 +78,8 @@ module Vkpd
|
|
80
78
|
|
81
79
|
case player
|
82
80
|
when 'mpd'
|
81
|
+
mpd = MPD.new 'localhost'
|
82
|
+
mpd.connect
|
83
83
|
mpd.clear if do_clear
|
84
84
|
response.each do |song|
|
85
85
|
puts song if @verbose
|
@@ -88,7 +88,7 @@ module Vkpd
|
|
88
88
|
mpd.play if do_play
|
89
89
|
when 'mplayer', 'mpv'
|
90
90
|
with_playlist(response){|pls| system "#{player} -cache 8192 -cache-min 2 -playlist #{pls}" }
|
91
|
-
else # e.g.
|
91
|
+
else # e.g. nvlc
|
92
92
|
with_playlist(response){|pls| system "#{player} #{pls}" }
|
93
93
|
end
|
94
94
|
end
|
data/lib/vkpd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vkpd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ales Guzik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|