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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f0172230df5bc278a55b6381daeba78174cddd6
4
- data.tar.gz: e075f4be0f23dd55099f70df865ccefd535e8bb0
3
+ metadata.gz: 2749cba47e4b5d147900f80a4444ad91a68daa76
4
+ data.tar.gz: f684c2764299895d63aba37a28c309a0be0dc786
5
5
  SHA512:
6
- metadata.gz: 31cec65e08e73c75a11d304cd2712668e97a76f24be1df3f54c925128eef2449c67b7fe43deaffcdb768aa3584e905bd07484a811f06722a91a50184dfa1ae00
7
- data.tar.gz: 2413965094bf9397bdad20c0117818b7de9ed2e4f64accc95aa20f5e4157920164753da07d95b6d7ffee4663a31a7fb1e5b92a45c09e22bcc63e930a21d6a9c3
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. "vlc -I ncurses"
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
@@ -1,3 +1,3 @@
1
1
  module Vkpd
2
- VERSION = "1.3.4"
2
+ VERSION = "1.3.5"
3
3
  end
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
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-07 00:00:00.000000000 Z
11
+ date: 2013-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra